1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 12:53:11 +08:00

Move code to already existing if block

This commit is contained in:
EXtremeExploit 2023-01-22 01:40:00 -03:00
parent 8c208da324
commit 2f3971b6fb
No known key found for this signature in database

View File

@ -78,10 +78,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
icon.Size = new Vector2(TextSize - 1);
})).ToList()
);
}
if (group.Playmodes?.Length > 0)
{
var badgeModesList = group.Playmodes.Select(p => rulesets.GetRuleset(p)?.Name).ToList();
string modesDisplay = string.Join(", ", badgeModesList);