1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-20 07:17:31 +08:00

Remove ??, value can never be null

This commit is contained in:
DrabWeb 2017-05-23 15:08:02 -03:00
parent 7a4b476121
commit be1ae2bd8e

View File

@ -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)