Skip to content

Commit

Permalink
Merge pull request #602 from meziantou/patch-1
Browse files Browse the repository at this point in the history
Fix nullable annotations for AnchorName implicit converter
  • Loading branch information
aaubry committed Apr 8, 2021
2 parents 1961d66 + 68c916b commit 7ffbb84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YamlDotNet/Core/AnchorName.cs
Expand Up @@ -71,6 +71,6 @@ public override int GetHashCode()
return !(left == right);
}

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

0 comments on commit 7ffbb84

Please sign in to comment.