1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 10:40:12 +08:00

Throw ArgumentOutOfRangeException on default path

This commit is contained in:
Dani211e
2025-06-27 04:28:44 +02:00
Unverified
parent c1a34d8c6a
commit 6e73a9299e
+2 -1
View File
@@ -1,6 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. 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();
}
}