1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 19:11:18 +08:00

Add missing entries to switch statement and guard against out of range

This commit is contained in:
Dean Herbert
2022-01-30 02:58:53 +09:00
Unverified
parent d21464ea61
commit 9b573fbc2b
+9 -1
View File
@@ -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();
}
}
}