From 10dbd68c1ee89be95c1844d62a8a698ab19c321d Mon Sep 17 00:00:00 2001 From: smoogipoo Date: Tue, 26 Sep 2017 20:11:45 +0900 Subject: [PATCH] Simplify null check --- .../Edit/Components/Timelines/Summary/Parts/MarkerPart.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/osu.Game/Screens/Edit/Components/Timelines/Summary/Parts/MarkerPart.cs b/osu.Game/Screens/Edit/Components/Timelines/Summary/Parts/MarkerPart.cs index 115aa60446..d4a1177c4f 100644 --- a/osu.Game/Screens/Edit/Components/Timelines/Summary/Parts/MarkerPart.cs +++ b/osu.Game/Screens/Edit/Components/Timelines/Summary/Parts/MarkerPart.cs @@ -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