mirror of
https://github.com/ppy/osu
synced 2025-01-18 20:10:49 +00:00
Clean up some checks
This commit is contained in:
parent
5b73f24864
commit
7508592789
@ -169,7 +169,7 @@ namespace osu.Game.Online.Leaderboards
|
||||
throw new InvalidOperationException($"State {state} cannot be set by a leaderboard implementation.");
|
||||
}
|
||||
|
||||
Debug.Assert(scores.Any() != true);
|
||||
Debug.Assert(scores.Any());
|
||||
|
||||
setState(state);
|
||||
}
|
||||
@ -258,7 +258,7 @@ namespace osu.Game.Online.Leaderboards
|
||||
.Expire();
|
||||
scoreFlowContainer = null;
|
||||
|
||||
if (scores.Any() != true)
|
||||
if (scores.Any())
|
||||
{
|
||||
setState(LeaderboardState.NoScores);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user