mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Make use of existing null check
This commit is contained in:
@ -138,11 +138,11 @@ namespace osu.Game.Overlays.Profile.Header
|
||||
|
||||
private void tryAddInfo(IconUsage icon, string content, string link = null)
|
||||
{
|
||||
// newlines could be contained in API returned user content.
|
||||
content = content?.Replace("\n", " ");
|
||||
|
||||
if (string.IsNullOrEmpty(content)) return;
|
||||
|
||||
// newlines could be contained in API returned user content.
|
||||
content = content.Replace("\n", " ");
|
||||
|
||||
bottomLinkContainer.AddIcon(icon, text =>
|
||||
{
|
||||
text.Font = text.Font.With(size: 10);
|
||||
|
Reference in New Issue
Block a user