1
0
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:
FreezyLemon 2017-11-27 08:47:36 +01:00
parent b34e724b8d
commit d49ee295d9

View File

@ -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)