mirror of
https://github.com/ppy/osu
synced 2025-02-03 11:51:54 +00:00
remove unnecessary null checks
This commit is contained in:
parent
d25ef1966d
commit
81948744d0
@ -56,10 +56,7 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
private void onBeatmapChanged(ValueChangedEvent<WorkingBeatmap> working)
|
||||
{
|
||||
if (working.NewValue?.Beatmap == null)
|
||||
return;
|
||||
|
||||
var metadata = working.NewValue?.Metadata;
|
||||
var metadata = working.NewValue.Metadata;
|
||||
|
||||
title.Text = new LocalisedString((metadata.TitleUnicode, metadata.Title));
|
||||
artist.Text = new LocalisedString((metadata.ArtistUnicode, metadata.Artist));
|
||||
|
Loading…
Reference in New Issue
Block a user