mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Remove many now unnecessary null-checks
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user