Remove useless array

This commit is contained in:
EVAST9919 2017-11-21 10:30:12 +03:00 committed by Dean Herbert
parent f3c93c894b
commit 5ffdaf711e

View File

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