1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 16:52:54 +08:00

Update pointless CompareTo implementation

This commit is contained in:
Dean Herbert 2022-01-27 21:49:33 +09:00
parent 7af23328a4
commit 33b7bdcf82

View File

@ -42,7 +42,7 @@ namespace osu.Game.Rulesets
public bool Equals(EFRulesetInfo other) => other != null && ID == other.ID && Available == other.Available && Name == other.Name && InstantiationInfo == other.InstantiationInfo;
public int CompareTo(RulesetInfo other) => ID?.CompareTo(other.ID) ?? -1;
public int CompareTo(RulesetInfo other) => OnlineID.CompareTo(other.OnlineID);
public override bool Equals(object obj) => obj is EFRulesetInfo rulesetInfo && Equals(rulesetInfo);