Skip to content

Commit

Permalink
Fix nullable annotations for AnchorName implicit converter
Browse files Browse the repository at this point in the history
  • Loading branch information
meziantou committed Apr 5, 2021
1 parent 35db04b commit 68c916b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YamlDotNet/Core/AnchorName.cs
Original file line number Diff line number Diff line change
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 68c916b

Please sign in to comment.