Skip to content

Commit

Permalink
refactor(cleanup): clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Nov 18, 2022
1 parent c5ecc02 commit 6fa692a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SoundSwitch/Framework/WinApi/WindowsAPIAdapter.cs
Expand Up @@ -171,7 +171,7 @@ public static bool RegisterHotKey(HotKey hotKey)

lock (_instance)
{
return (bool)_instance.Invoke(new Func<bool>(() =>
return (bool)_instance.Invoke(() =>
{
Log.Information("Registering Hotkeys: {hotkeys}", hotKey);
if (_instance._registeredHotkeys.ContainsKey(hotKey))
Expand All @@ -185,7 +185,7 @@ public static bool RegisterHotKey(HotKey hotKey)
// register the hot key.
return NativeMethods.RegisterHotKey(_instance.Handle, id, (uint)hotKey.Modifier,
(uint)hotKey.Keys);
}));
});
}
}

Expand Down

0 comments on commit 6fa692a

Please sign in to comment.