mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 07:37:22 +09:00
Simplify null check
This commit is contained in:
parent
c578509a20
commit
10dbd68c1e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user