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:
parent
9bcc6bf6da
commit
701d21c26f
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user