Fixed style concerns

This commit is contained in:
Joseph-Ramos-CMU
2020-12-14 13:23:43 -05:00
parent b26946ba8e
commit bd2765ecc4

View File

@ -420,7 +420,7 @@ namespace osu.Game.Online.Chat
// by removing the oldest element
if (closedChannels.Count >= closed_channels_max_size)
{
closedChannels.Remove(closedChannels[0]);
closedChannels.RemoveAt(0);
}
// insert at the end of the closedChannels list
@ -445,8 +445,7 @@ namespace osu.Game.Online.Chat
return;
}
// equivalent to Channel lastClosedChannel = closedChannels[closedChannels.Count - 1];
Channel lastClosedChannel = closedChannels[^1];
Channel lastClosedChannel = closedChannels.Last();
closedChannels.Remove(lastClosedChannel);