1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Fix resharper error

This commit is contained in:
smoogipoo 2018-03-25 01:54:25 +09:00
parent d28de89e50
commit 097ab66182

View File

@ -254,7 +254,7 @@ namespace osu.Game.Screens.Select
private OsuSpriteText[] getMapper(BeatmapMetadata metadata)
{
if (metadata.Author == null || string.IsNullOrEmpty(metadata.Author.Username))
if (string.IsNullOrEmpty(metadata.Author?.Username))
return Array.Empty<OsuSpriteText>();
return new[]
@ -268,6 +268,7 @@ namespace osu.Game.Screens.Select
new OsuSpriteText
{
Font = @"Exo2.0-Bold",
// ReSharper disable once PossibleNullReferenceException (resharper broken?)
Text = metadata.Author.Username,
TextSize = 15,
}