Simplify null check

This commit is contained in:
smoogipoo 2017-09-26 20:11:45 +09:00
parent c578509a20
commit 10dbd68c1e

View File

@ -62,9 +62,7 @@ namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Parts
{
base.Update();
if (Beatmap.Value == null)
return;
marker.X = (float)Beatmap.Value.Track.CurrentTime;
marker.X = (float)(Beatmap.Value?.Track.CurrentTime ?? 0);
}
private class MarkerVisualisation : CompositeDrawable