1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 02:09:54 +08:00

Fixed style concerns

This commit is contained in:
Joseph-Ramos-CMU
2020-12-14 13:23:43 -05:00
Unverified
parent b26946ba8e
commit bd2765ecc4
+2 -3
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);