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:
parent
d28de89e50
commit
097ab66182
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user