diff --git a/osu.Game/Scoring/ScoreInfoExtensions.cs b/osu.Game/Scoring/ScoreInfoExtensions.cs index 0554dc31e3..13a5594cf8 100644 --- a/osu.Game/Scoring/ScoreInfoExtensions.cs +++ b/osu.Game/Scoring/ScoreInfoExtensions.cs @@ -1,6 +1,7 @@ // Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. +using System; using System.Collections.Generic; using System.Linq; using osu.Game.Beatmaps; @@ -52,7 +53,7 @@ namespace osu.Game.Scoring case LeaderboardSortMode.Date: return scores.OrderByDescending(s => s.Date); - default: return scores; + default: throw new ArgumentOutOfRangeException(); } }