mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use TryRemove and discard out var to clean up action keywords
This commit is contained in:
parent
2be10eb4ca
commit
76cc22d5af
1 changed files with 2 additions and 2 deletions
|
|
@ -727,7 +727,7 @@ namespace Flow.Launcher.Core.Plugin
|
|||
|
||||
if (oldActionkeyword != Query.GlobalPluginWildcardSign)
|
||||
{
|
||||
_nonGlobalPlugins.TryRemove(oldActionkeyword, out var item);
|
||||
_nonGlobalPlugins.TryRemove(oldActionkeyword, out _);
|
||||
}
|
||||
|
||||
// Update action keywords and action keyword in plugin metadata
|
||||
|
|
@ -976,7 +976,7 @@ namespace Flow.Launcher.Core.Plugin
|
|||
var keysToRemove = _nonGlobalPlugins.Where(p => p.Value.Metadata.ID == plugin.ID).Select(p => p.Key).ToList();
|
||||
foreach (var key in keysToRemove)
|
||||
{
|
||||
_nonGlobalPlugins.Remove(key, out var ite3);
|
||||
_nonGlobalPlugins.TryRemove(key, out var _);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue