Update cases where equality can be used instead of primary key equality

This commit is contained in:
Dean Herbert
2021-11-24 12:49:57 +09:00
parent 049f25a133
commit 729f681938
12 changed files with 23 additions and 23 deletions

View File

@ -340,8 +340,8 @@ namespace osu.Game.Beatmaps
}
public bool Equals(DifficultyCacheLookup other)
=> BeatmapInfo.ID == other.BeatmapInfo.ID
&& Ruleset.ID == other.Ruleset.ID
=> BeatmapInfo.Equals(other.BeatmapInfo)
&& Ruleset.Equals(other.Ruleset)
&& OrderedMods.SequenceEqual(other.OrderedMods);
public override int GetHashCode()