mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
Removed unnecessary schedule and null checks
This commit is contained in:
parent
b34e724b8d
commit
d49ee295d9
@ -217,12 +217,9 @@ namespace osu.Game.Screens.Select
|
||||
if (description == null || source == null || tags == null)
|
||||
throw new InvalidOperationException($@"Requires all {nameof(MetadataSection)} elements to be non-null.");
|
||||
|
||||
Schedule(() =>
|
||||
{
|
||||
description.Text = Beatmap?.Version;
|
||||
source.Text = Beatmap?.Metadata?.Source;
|
||||
tags.Text = Beatmap?.Metadata?.Tags;
|
||||
});
|
||||
description.Text = beatmap.Version;
|
||||
source.Text = beatmap.Metadata?.Source;
|
||||
tags.Text = beatmap.Metadata?.Tags;
|
||||
}
|
||||
|
||||
private void displayMetrics(BeatmapMetrics metrics, bool failOnMissing = true)
|
||||
|
Loading…
Reference in New Issue
Block a user