1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Apply single inspection from newer inspectcode verisons

As found in rider EAPs. Appears as a warning and is annoying me
occasionally.
This commit is contained in:
Dean Herbert 2023-02-06 13:52:25 +09:00
parent 9bcc6bf6da
commit 701d21c26f

View File

@ -315,10 +315,10 @@ namespace osu.Game.Overlays
channelListing.Hide();
textBar.ShowSearch.Value = false;
if (loadedChannels.ContainsKey(newChannel))
if (loadedChannels.TryGetValue(newChannel, out var loadedChannel))
{
currentChannelContainer.Clear(false);
currentChannelContainer.Add(loadedChannels[newChannel]);
currentChannelContainer.Add(loadedChannel);
}
else
{