Clean up some checks

This commit is contained in:
Dan Balasescu
2022-09-22 19:56:24 +09:00
parent 5b73f24864
commit 7508592789

View File

@ -169,7 +169,7 @@ namespace osu.Game.Online.Leaderboards
throw new InvalidOperationException($"State {state} cannot be set by a leaderboard implementation."); throw new InvalidOperationException($"State {state} cannot be set by a leaderboard implementation.");
} }
Debug.Assert(scores.Any() != true); Debug.Assert(scores.Any());
setState(state); setState(state);
} }
@ -258,7 +258,7 @@ namespace osu.Game.Online.Leaderboards
.Expire(); .Expire();
scoreFlowContainer = null; scoreFlowContainer = null;
if (scores.Any() != true) if (scores.Any())
{ {
setState(LeaderboardState.NoScores); setState(LeaderboardState.NoScores);
return; return;