mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Invert condition to reduce nesting
This commit is contained in:
@ -471,9 +471,10 @@ namespace osu.Game.Online.Chat
|
||||
ClosedChannel lastClosedChannel = closedChannels.Last();
|
||||
closedChannels.RemoveAt(closedChannels.Count - 1);
|
||||
|
||||
// If the user hasn't already joined the channel, try to join it
|
||||
if (joinedChannels.FirstOrDefault(lastClosedChannel.IsEqual) == null)
|
||||
{
|
||||
// If the user has already joined the channel, try the next one
|
||||
if (joinedChannels.FirstOrDefault(lastClosedChannel.IsEqual) != null)
|
||||
continue;
|
||||
|
||||
Channel lastChannel = AvailableChannels.FirstOrDefault(lastClosedChannel.IsEqual);
|
||||
|
||||
if (lastChannel != null)
|
||||
@ -495,7 +496,6 @@ namespace osu.Game.Online.Chat
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private long lastMessageId;
|
||||
|
||||
|
Reference in New Issue
Block a user