From 6e73a9299ecda190f6d2cd17d099ebf2825e75ff Mon Sep 17 00:00:00 2001 From: Dani211e Date: Fri, 27 Jun 2025 04:28:44 +0200 Subject: [PATCH] Throw ArgumentOutOfRangeException on default path --- osu.Game/Scoring/ScoreInfoExtensions.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } }