1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:42:56 +08:00

Whitespace fixes

This commit is contained in:
Angela Zhang 2020-12-17 18:43:39 -06:00
parent 454c7538c0
commit 45482e8709
2 changed files with 5 additions and 6 deletions

View File

@ -244,7 +244,7 @@ namespace osu.Game.Tests.Visual.Online
// Want to join another channel
AddStep("Press Ctrl + T", pressControlT);
// Selector should be visible
AddAssert("Selector is visible", () => chatOverlay.SelectionOverlayState == Visibility.Visible);
}

View File

@ -459,10 +459,9 @@ namespace osu.Game.Online.Chat
long lastClosedChannelId = closedChannelIds.Last();
closedChannelIds.RemoveAt(closedChannelIds.Count - 1);
bool lookupCondition(Channel ch) =>
ch.Type == ChannelType.PM
? ch.Users.Any(u => u.Id == lastClosedChannelId)
: ch.Id == lastClosedChannelId;
bool lookupCondition(Channel ch) => ch.Type == ChannelType.PM
? ch.Users.Any(u => u.Id == lastClosedChannelId)
: ch.Id == lastClosedChannelId;
// If the user hasn't already joined the channel, try to join it
if (joinedChannels.FirstOrDefault(lookupCondition) == null)
@ -480,7 +479,7 @@ namespace osu.Game.Online.Chat
req.Success += user => CurrentChannel.Value = JoinChannel(new Channel(user));
api.Queue(req);
}
return;
}
}