1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:42:54 +08:00

remove unnecessary declaration + revert accidental formatting

This commit is contained in:
Aergwyn 2017-12-04 12:11:28 +01:00
parent 011223048b
commit 12665fb8cf

View File

@ -40,13 +40,11 @@ namespace osu.Game.Screens.Select
panels.Clear();
groups.Clear();
List<BeatmapGroup> newGroups = null;
Task.Run(() =>
{
Schedule(() =>
{
newGroups = value.Select(createGroup).Where(g => g != null).ToList();
var newGroups = value.Select(createGroup).Where(g => g != null).ToList();
criteria.Filter(newGroups);
foreach (var g in newGroups)
@ -484,8 +482,7 @@ namespace osu.Game.Screens.Select
if (panel == null)
panel = group.BeatmapPanels.First();
if (selectedPanel == panel)
return;
if (selectedPanel == panel) return;
Trace.Assert(group.BeatmapPanels.Contains(panel), @"Selected panel must be in provided group");
@ -497,8 +494,7 @@ namespace osu.Game.Screens.Select
panel.State = PanelSelectedState.Selected;
if (selectedPanel == panel)
return;
if (selectedPanel == panel) return;
selectedPanel = panel;
selectedGroup = group;