From 34ec13635b914e1dd74e62b7e6e9f140a260c771 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Sat, 4 Dec 2021 10:37:28 +1000 Subject: [PATCH] Return void from `Control.*Invoke` extensions --- .../Extensions/ControlExtensions.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/BizHawk.Client.EmuHawk/Extensions/ControlExtensions.cs b/src/BizHawk.Client.EmuHawk/Extensions/ControlExtensions.cs index add2ad81c0..a153e1f2b2 100644 --- a/src/BizHawk.Client.EmuHawk/Extensions/ControlExtensions.cs +++ b/src/BizHawk.Client.EmuHawk/Extensions/ControlExtensions.cs @@ -29,16 +29,12 @@ namespace BizHawk.Client.EmuHawk } /// extension method to make easier to use - public static object Invoke(this Control control, Action action) - { - return control.Invoke(action); - } + public static void Invoke(this Control control, Action action) + => control.Invoke(action); /// extension method to make easier to use - public static IAsyncResult BeginInvoke(this Control control, Action action) - { - return control.BeginInvoke(action); - } + public static void BeginInvoke(this Control control, Action action) + => control.BeginInvoke(action); public static ToolStripMenuItem ToColumnsMenu(this InputRoll inputRoll, Action changeCallback) {