Skip to content

Commit

Permalink
Fix nullable annotation of TagName implicit converter
Browse files Browse the repository at this point in the history
  • Loading branch information
meziantou authored Apr 5, 2021
1 parent 35db04b commit 4a86822
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 4a86822

Please sign in to comment.