Skip to content

Commit

Permalink
Merge pull request #603 from meziantou/patch-2
Browse files Browse the repository at this point in the history
Fix nullable annotation of TagName implicit converter
  • Loading branch information
aaubry authored Apr 8, 2021
2 parents b722b07 + 4a86822 commit 1961d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YamlDotNet/Core/TagName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@ public override int GetHashCode()
return !(left == right);
}

public static implicit operator TagName(string value) => value == null ? Empty : new TagName(value);
public static implicit operator TagName(string? value) => value == null ? Empty : new TagName(value);
}
}

0 comments on commit 1961d66

Please sign in to comment.