1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 18:12:55 +08:00

Remove unnecessary guarding

This commit is contained in:
Salman Alshamrani 2024-12-23 10:54:52 -05:00
parent 050bf9ec60
commit 7e3477f4bb

View File

@ -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}");
} }
} }