mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 07:12:54 +08:00
Remove the null check because bindable should always have the value.
This commit is contained in:
parent
ce1bb206c8
commit
3af093cb27
@ -214,8 +214,8 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
|
|
||||||
public bool Equals(IBindable x, IBindable y)
|
public bool Equals(IBindable x, IBindable y)
|
||||||
{
|
{
|
||||||
object xValue = x?.GetUnderlyingSettingValue();
|
object xValue = x.GetUnderlyingSettingValue();
|
||||||
object yValue = y?.GetUnderlyingSettingValue();
|
object yValue = y.GetUnderlyingSettingValue();
|
||||||
|
|
||||||
return EqualityComparer<object>.Default.Equals(xValue, yValue);
|
return EqualityComparer<object>.Default.Equals(xValue, yValue);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user