mirror of
https://github.com/ppy/osu
synced 2025-03-01 17:11:12 +00:00
Move code to already existing if block
This commit is contained in:
parent
8c208da324
commit
2f3971b6fb
@ -78,10 +78,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
|||||||
icon.Size = new Vector2(TextSize - 1);
|
icon.Size = new Vector2(TextSize - 1);
|
||||||
})).ToList()
|
})).ToList()
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
if (group.Playmodes?.Length > 0)
|
|
||||||
{
|
|
||||||
var badgeModesList = group.Playmodes.Select(p => rulesets.GetRuleset(p)?.Name).ToList();
|
var badgeModesList = group.Playmodes.Select(p => rulesets.GetRuleset(p)?.Name).ToList();
|
||||||
|
|
||||||
string modesDisplay = string.Join(", ", badgeModesList);
|
string modesDisplay = string.Join(", ", badgeModesList);
|
||||||
|
Loading…
Reference in New Issue
Block a user