mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
Add missing entries to switch
statement and guard against out of range
This commit is contained in:
parent
d21464ea61
commit
9b573fbc2b
@ -278,10 +278,18 @@ namespace osu.Game.Online.Leaderboards
|
||||
replacePlaceholder(new MessagePlaceholder(@"Please invest in an osu!supporter tag to view this leaderboard!"));
|
||||
break;
|
||||
|
||||
default:
|
||||
case PlaceholderState.Retrieving:
|
||||
Debug.Assert(scores?.Any() != true);
|
||||
replacePlaceholder(null);
|
||||
break;
|
||||
|
||||
case PlaceholderState.Successful:
|
||||
Debug.Assert(scores?.Any() == true);
|
||||
replacePlaceholder(null);
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user