From 5ffdaf711e59f1dd909f4ed1cf758fa54e4877ce Mon Sep 17 00:00:00 2001 From: EVAST9919 Date: Tue, 21 Nov 2017 10:30:12 +0300 Subject: [PATCH] Remove useless array --- osu.Game/Overlays/Profile/RankChart.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/osu.Game/Overlays/Profile/RankChart.cs b/osu.Game/Overlays/Profile/RankChart.cs index 3981939bf8..6547b0aa07 100644 --- a/osu.Game/Overlays/Profile/RankChart.cs +++ b/osu.Game/Overlays/Profile/RankChart.cs @@ -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(index, x)).SkipWhile(x => x.Value == 0).ToArray(); - ranks = tempRanks.Where(x => x.Value != 0).ToArray(); + ranks = userRanks.Select((x, index) => new KeyValuePair(index, x)).Where(x => x.Value != 0).ToArray(); if (ranks.Length > 1) {