mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Formatting fixes
Fixed some formatting issues to comply with InspectCode.
This commit is contained in:
@ -447,7 +447,7 @@ namespace osu.Game.Online.Chat
|
||||
|
||||
// This nested loop could be eliminated if a check was added so that
|
||||
// when the code opens a channel it removes from the closedChannel list.
|
||||
// However, this would require adding an O(|closeChannels|) work operation
|
||||
// However, this would require adding an O(|closeChannels|) work operation
|
||||
// every time the user joins a channel, which would make joining a channel
|
||||
// slower. I wanted to centralize all major slowdowns so they
|
||||
// can only occur if the user actually decides to use this feature.
|
||||
@ -456,6 +456,7 @@ namespace osu.Game.Online.Chat
|
||||
string lastClosedChannelName = closedChannels.Last();
|
||||
closedChannels.RemoveAt(closedChannels.Count - 1);
|
||||
bool alreadyJoined = false;
|
||||
|
||||
// If the user already joined the channel, do not
|
||||
// try to join it
|
||||
for (int j = 0; j < joinedChannels.Count; j++)
|
||||
@ -471,11 +472,7 @@ namespace osu.Game.Online.Chat
|
||||
{
|
||||
Channel lastClosedChannel = AvailableChannels.FirstOrDefault(c => c.Name == lastClosedChannelName);
|
||||
|
||||
if (lastClosedChannel == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else
|
||||
if (lastClosedChannel != null)
|
||||
{
|
||||
JoinChannel(lastClosedChannel);
|
||||
return;
|
||||
@ -484,8 +481,6 @@ namespace osu.Game.Online.Chat
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private long lastMessageId;
|
||||
|
||||
private bool channelsInitialised;
|
||||
|
Reference in New Issue
Block a user