Remove many now unnecessary null-checks

This commit is contained in:
Dean Herbert
2017-07-19 15:45:23 +09:00
parent 21d07428fe
commit 64ebc01a3b
7 changed files with 19 additions and 19 deletions

View File

@ -59,14 +59,14 @@ namespace osu.Game.Screens.Select
{
if (!IsCurrentScreen) return;
beatmap?.Mods.BindTo(modSelect.SelectedMods);
beatmap.Mods.BindTo(modSelect.SelectedMods);
if (Beatmap.Value?.Track != null)
if (Beatmap.Value.Track != null)
Beatmap.Value.Track.Looping = false;
beatmapDetails.Beatmap = beatmap;
if (beatmap?.Track != null)
if (beatmap.Track != null)
beatmap.Track.Looping = true;
}
@ -97,7 +97,7 @@ namespace osu.Game.Screens.Select
if (base.OnExiting(next))
return true;
if (Beatmap.Value?.Track != null)
if (Beatmap.Value.Track != null)
Beatmap.Value.Track.Looping = false;
return false;