mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Fixed style concerns
This commit is contained in:
@ -420,7 +420,7 @@ namespace osu.Game.Online.Chat
|
|||||||
// by removing the oldest element
|
// by removing the oldest element
|
||||||
if (closedChannels.Count >= closed_channels_max_size)
|
if (closedChannels.Count >= closed_channels_max_size)
|
||||||
{
|
{
|
||||||
closedChannels.Remove(closedChannels[0]);
|
closedChannels.RemoveAt(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// insert at the end of the closedChannels list
|
// insert at the end of the closedChannels list
|
||||||
@ -445,8 +445,7 @@ namespace osu.Game.Online.Chat
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// equivalent to Channel lastClosedChannel = closedChannels[closedChannels.Count - 1];
|
Channel lastClosedChannel = closedChannels.Last();
|
||||||
Channel lastClosedChannel = closedChannels[^1];
|
|
||||||
|
|
||||||
closedChannels.Remove(lastClosedChannel);
|
closedChannels.Remove(lastClosedChannel);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user