mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +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();
|
ClosedChannel lastClosedChannel = closedChannels.Last();
|
||||||
closedChannels.RemoveAt(closedChannels.Count - 1);
|
closedChannels.RemoveAt(closedChannels.Count - 1);
|
||||||
|
|
||||||
// If the user hasn't already joined the channel, try to join it
|
// If the user has already joined the channel, try the next one
|
||||||
if (joinedChannels.FirstOrDefault(lastClosedChannel.IsEqual) == null)
|
if (joinedChannels.FirstOrDefault(lastClosedChannel.IsEqual) != null)
|
||||||
{
|
continue;
|
||||||
|
|
||||||
Channel lastChannel = AvailableChannels.FirstOrDefault(lastClosedChannel.IsEqual);
|
Channel lastChannel = AvailableChannels.FirstOrDefault(lastClosedChannel.IsEqual);
|
||||||
|
|
||||||
if (lastChannel != null)
|
if (lastChannel != null)
|
||||||
@ -495,7 +496,6 @@ namespace osu.Game.Online.Chat
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private long lastMessageId;
|
private long lastMessageId;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user