mirror of
https://github.com/ppy/osu
synced 2025-01-10 08:09:40 +00: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)
|
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,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user