From 4a868220c4b7b491374340ae8c4c00ee840345a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rald=20Barr=C3=A9?= Date: Mon, 5 Apr 2021 15:38:50 -0400 Subject: [PATCH] Fix nullable annotation of TagName implicit converter --- YamlDotNet/Core/TagName.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YamlDotNet/Core/TagName.cs b/YamlDotNet/Core/TagName.cs index cff5ee16..be44abf2 100644 --- a/YamlDotNet/Core/TagName.cs +++ b/YamlDotNet/Core/TagName.cs @@ -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); } }