1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-08 07:33:09 +08:00

Use All instead of ToList Any

Co-Authored-By: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
Endrik 2020-03-28 19:58:33 +02:00 committed by GitHub
parent 87854fc4fa
commit 2c27894527
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,7 +253,7 @@ namespace osu.Game.Screens.Select
/// <param name="skipDifficulties">Whether to skip individual difficulties and only increment over full groups.</param> /// <param name="skipDifficulties">Whether to skip individual difficulties and only increment over full groups.</param>
public void SelectNext(int direction = 1, bool skipDifficulties = true) public void SelectNext(int direction = 1, bool skipDifficulties = true)
{ {
if (!beatmapSets.Where(s => !s.Filtered.Value).ToList().Any()) if (beatmapSets.All(s => !s.Filtered.Value))
return; return;
if (skipDifficulties) if (skipDifficulties)