1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 10:53:21 +08:00

Use Count comparison instead of Any

This commit is contained in:
Nicholas Chin 2024-12-14 08:29:32 +08:00
parent c0b6e784a5
commit 153e6c0c22

View File

@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Extensions.LocalisationExtensions;
@ -189,7 +188,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
);
}
detailGlobalRank.ContentTooltipText = tooltipParts.Any()
detailGlobalRank.ContentTooltipText = tooltipParts.Count > 0
? string.Join("\n", tooltipParts)
: string.Empty;
#endregion
@ -210,7 +209,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
}
}
detailCountryRank.ContentTooltipText = countryTooltipParts.Any()
detailCountryRank.ContentTooltipText = countryTooltipParts.Count > 0
? string.Join("\n", countryTooltipParts)
: string.Empty;
#endregion