Skip to content

Commit 6060e35

Browse files
committed
Fix warnings
1 parent 8684514 commit 6060e35

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/ElectronNET.API/Bridge/Events.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,10 @@ public async Task On<T>(string moduleName, string eventName, Action<T> action)
6868
await BridgeConnector.Socket.Emit(subscriber, eventName, listener).ConfigureAwait(false);
6969
}
7070

71-
/// <summary>
72-
/// Subscribe to an unmapped electron event.
73-
/// </summary>
71+
/// <summary>Subscribe to an unmapped electron event.</summary>
7472
/// <param name="moduleName">The name of the module, e.g. app, dock, etc...</param>
7573
/// <param name="eventName">The name of the event</param>
76-
/// <param name="fn">The event handler</param>
74+
/// <param name="action">The action.</param>
7775
public async Task Once(string moduleName, string eventName, Action action)
7876
{
7977
var listener = $"{moduleName}{_textInfo.ToTitleCase(eventName)}Completed";

src/ElectronNET.API/Runtime/StartupManager.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ private RuntimeControllerBase CreateRuntimeController()
4848
default:
4949
throw new ArgumentOutOfRangeException();
5050
}
51-
52-
return null;
5351
}
5452

5553
private StartupMethod DetectAppTypeAndStartup()

src/ElectronNET.WebApp/Controllers/WindowsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public IActionResult Index()
3434
browserWindow.OnFocus += () => Electron.IpcMain.Send(mainBrowserWindow, "listen-to-window-focus");
3535
browserWindow.OnBlur += () => Electron.IpcMain.Send(mainBrowserWindow, "listen-to-window-blur");
3636

37-
Electron.IpcMain.On("listen-to-window-set-focus", (x) => browserWindow.Focus());
37+
_ = Electron.IpcMain.On("listen-to-window-set-focus", (x) => browserWindow.Focus());
3838
});
3939

4040
Electron.IpcMain.On("frameless-window", async (args) =>

0 commit comments

Comments
 (0)