only use `==` for comparion on primitive types

This commit is contained in:
Unknown 2017-11-25 15:28:39 +01:00 committed by Aergwyn
parent 5da1466e28
commit ae55d392de
1 changed files with 9 additions and 9 deletions

View File

@ -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;
}
}
}