1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-31 23:02:54 +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(); channelListing.Hide();
textBar.ShowSearch.Value = false; textBar.ShowSearch.Value = false;
if (loadedChannels.ContainsKey(newChannel)) if (loadedChannels.TryGetValue(newChannel, out var loadedChannel))
{ {
currentChannelContainer.Clear(false); currentChannelContainer.Clear(false);
currentChannelContainer.Add(loadedChannels[newChannel]); currentChannelContainer.Add(loadedChannel);
} }
else else
{ {