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