mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Don't use Equals(object) on T?.
This commit is contained in:
@ -79,8 +79,8 @@ namespace osu.Game.Screens.Select
|
||||
public bool IsUpperInclusive;
|
||||
|
||||
public bool Equals(OptionalRange<T> other)
|
||||
=> Min.Equals(other.Min)
|
||||
&& Max.Equals(other.Max)
|
||||
=> EqualityComparer<T?>.Default.Equals(Min, other.Min)
|
||||
&& EqualityComparer<T?>.Default.Equals(Max, other.Max)
|
||||
&& IsLowerInclusive.Equals(other.IsLowerInclusive)
|
||||
&& IsUpperInclusive.Equals(other.IsUpperInclusive);
|
||||
}
|
||||
|
Reference in New Issue
Block a user