mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 00:53:31 +08:00
Make use of existing null check
This commit is contained in:
parent
9e13a6aeae
commit
8f63887972
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user