mirror of
https://github.com/ppy/osu.git
synced 2025-03-19 08:27:19 +08:00
Remove ??, value can never be null
This commit is contained in:
parent
7a4b476121
commit
be1ae2bd8e
@ -169,9 +169,9 @@ namespace osu.Game.Overlays
|
||||
resultCountsContainer.FadeTo(ResultCounts == null ? 0f : 1f, 200, EasingTypes.Out);
|
||||
if (ResultCounts == null) return;
|
||||
|
||||
resultCountsText.Text = pluralize(@"Artist", ResultCounts?.Artists ?? 0) + ", " +
|
||||
pluralize(@"Song", ResultCounts?.Songs ?? 0) + ", " +
|
||||
pluralize(@"Tag", ResultCounts?.Tags ?? 0);
|
||||
resultCountsText.Text = pluralize(@"Artist", ResultCounts.Artists) + ", " +
|
||||
pluralize(@"Song", ResultCounts.Songs) + ", " +
|
||||
pluralize(@"Tag", ResultCounts.Tags);
|
||||
}
|
||||
|
||||
private string pluralize(string prefix, int value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user