Better variable name

This commit is contained in:
Dean Herbert 2017-12-22 19:25:59 +09:00
parent 82909f6585
commit e5faced9ba

View File

@ -91,11 +91,11 @@ namespace osu.Game.Overlays.Profile
graph.Colour = colours.Yellow;
}
private void userChanged(User newUser)
private void userChanged(User user)
{
placeholder.FadeIn(fade_duration, Easing.Out);
if (newUser == null)
if (user == null)
{
rankText.Text = string.Empty;
performanceText.Text = string.Empty;
@ -105,7 +105,7 @@ namespace osu.Game.Overlays.Profile
return;
}
int[] userRanks = newUser.RankHistory?.Data ?? new[] { newUser.Statistics.Rank };
int[] userRanks = user.RankHistory?.Data ?? new[] { user.Statistics.Rank };
ranks = userRanks.Select((x, index) => new KeyValuePair<int, int>(index, x)).Where(x => x.Value != 0).ToArray();
if (ranks.Length > 1)