1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 20:22:55 +08:00

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(); base.Update();
if (Beatmap.Value == null) marker.X = (float)(Beatmap.Value?.Track.CurrentTime ?? 0);
return;
marker.X = (float)Beatmap.Value.Track.CurrentTime;
} }
private class MarkerVisualisation : CompositeDrawable private class MarkerVisualisation : CompositeDrawable