mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00:00
Remove useless array
This commit is contained in:
parent
f3c93c894b
commit
5ffdaf711e
@ -108,8 +108,7 @@ namespace osu.Game.Overlays.Profile
|
||||
}
|
||||
|
||||
int[] userRanks = user.RankHistory?.Data ?? new[] { user.Statistics.Rank };
|
||||
var tempRanks = userRanks.Select((x, index) => new KeyValuePair<int, int>(index, x)).SkipWhile(x => x.Value == 0).ToArray();
|
||||
ranks = tempRanks.Where(x => x.Value != 0).ToArray();
|
||||
ranks = userRanks.Select((x, index) => new KeyValuePair<int, int>(index, x)).Where(x => x.Value != 0).ToArray();
|
||||
|
||||
if (ranks.Length > 1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user