mirror of
https://github.com/ppy/osu
synced 2025-03-25 04:18:03 +00: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)
|
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;
|
if (string.IsNullOrEmpty(content)) return;
|
||||||
|
|
||||||
|
// newlines could be contained in API returned user content.
|
||||||
|
content = content.Replace("\n", " ");
|
||||||
|
|
||||||
bottomLinkContainer.AddIcon(icon, text =>
|
bottomLinkContainer.AddIcon(icon, text =>
|
||||||
{
|
{
|
||||||
text.Font = text.Font.With(size: 10);
|
text.Font = text.Font.With(size: 10);
|
||||||
|
Loading…
Reference in New Issue
Block a user