Skip to content

Commit 1961d66

Browse files
authored
Merge pull request #603 from meziantou/patch-2
Fix nullable annotation of TagName implicit converter
2 parents b722b07 + 4a86822 commit 1961d66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

YamlDotNet/Core/TagName.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@ public override int GetHashCode()
8686
return !(left == right);
8787
}
8888

89-
public static implicit operator TagName(string value) => value == null ? Empty : new TagName(value);
89+
public static implicit operator TagName(string? value) => value == null ? Empty : new TagName(value);
9090
}
9191
}

0 commit comments

Comments
 (0)