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:
parent
c0b6e784a5
commit
153e6c0c22
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user