mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 21:02:56 +08:00
Remove unnecessary guarding
This commit is contained in:
parent
050bf9ec60
commit
7e3477f4bb
@ -76,8 +76,6 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
{
|
{
|
||||||
if (!c.Active.Disabled)
|
if (!c.Active.Disabled)
|
||||||
c.Active.Value = Current.Contains(c.Value);
|
c.Active.Value = Current.Contains(c.Value);
|
||||||
else if (c.Active.Value != Current.Contains(c.Value))
|
|
||||||
throw new InvalidOperationException($"Expected filter {c.Value} to be set to {Current.Contains(c.Value)}, but was {c.Active.Value}");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user