Remove unnecessary count check

This commit is contained in:
Dean Herbert 2017-07-20 15:34:44 +09:00
parent a59557f039
commit 4f10256182

View File

@ -133,7 +133,7 @@ namespace osu.Game.Screens.Select
public void SelectNext(int direction = 1, bool skipDifficulties = true) public void SelectNext(int direction = 1, bool skipDifficulties = true)
{ {
if (groups.Count == 0 || groups.All(g => g.State == BeatmapGroupState.Hidden)) if (groups.All(g => g.State == BeatmapGroupState.Hidden))
{ {
selectedGroup = null; selectedGroup = null;
selectedPanel = null; selectedPanel = null;