mirror of https://github.com/ppy/osu
only use `==` for comparion on primitive types
This commit is contained in:
parent
5da1466e28
commit
ae55d392de
|
@ -74,16 +74,16 @@ public bool Equals(BeatmapMetadata other)
|
|||
return false;
|
||||
|
||||
return onlineBeatmapSetID == other.onlineBeatmapSetID
|
||||
&& (Title?.Equals(other.Title) ?? false)
|
||||
&& (TitleUnicode?.Equals(other.TitleUnicode) ?? false)
|
||||
&& (Artist?.Equals(other.Artist) ?? false)
|
||||
&& (ArtistUnicode?.Equals(other.ArtistUnicode) ?? false)
|
||||
&& (AuthorString?.Equals(other.AuthorString) ?? false)
|
||||
&& (Source?.Equals(other.Source) ?? false)
|
||||
&& (Tags?.Equals(other.Tags) ?? false)
|
||||
&& Title == other.Title
|
||||
&& TitleUnicode == other.TitleUnicode
|
||||
&& Artist == other.Artist
|
||||
&& ArtistUnicode == other.ArtistUnicode
|
||||
&& AuthorString == other.AuthorString
|
||||
&& Source == other.Source
|
||||
&& Tags == other.Tags
|
||||
&& PreviewTime == other.PreviewTime
|
||||
&& (AudioFile?.Equals(other.AudioFile) ?? false)
|
||||
&& (BackgroundFile?.Equals(other.BackgroundFile) ?? false);
|
||||
&& AudioFile == other.AudioFile
|
||||
&& BackgroundFile == other.BackgroundFile;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue