Skip to content

Commit

Permalink
Adjust parameter nullability (CompareTo).
Browse files Browse the repository at this point in the history
Looks like the latest .NET Core 3.1 added a few more nullability
annotations.
  • Loading branch information
Zastai committed May 20, 2020
1 parent 59f2063 commit 494b170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MetaBrainz.MusicBrainz/PartialDate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public override string ToString() {
/// -1 if this partial date precedes <paramref name="other"/>, 1 if <paramref name="other"/> precedes this partial date, and 0
/// otherwise.
/// </returns>
public int CompareTo(PartialDate other) {
public int CompareTo(PartialDate? other) {
if (object.ReferenceEquals(other, null))
return +1;
if (this.Year.HasValue) {
Expand Down

0 comments on commit 494b170

Please sign in to comment.