Skip to content

Commit 6d038ff

Browse files
committed
fix(electron): satisfy ipc handler lint
1 parent 25c0740 commit 6d038ff

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

electron/src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,28 +292,28 @@ function registerIPCHandlers(): void {
292292
return nativeTheme.shouldUseDarkColors ? 'dark' : 'light';
293293
});
294294

295-
ipcMain.handle(STATUS_TELEMETRY_SUBSCRIBE_CHANNEL, async () => {
295+
ipcMain.handle(STATUS_TELEMETRY_SUBSCRIBE_CHANNEL, () => {
296296
statusTelemetryRendererSubscriptions += 1;
297297
if (statusTelemetryRendererSubscriptions === 1) {
298298
startStatusTelemetryUpdateForwarder();
299299
}
300300
});
301301

302-
ipcMain.handle(STATUS_TELEMETRY_UNSUBSCRIBE_CHANNEL, async () => {
302+
ipcMain.handle(STATUS_TELEMETRY_UNSUBSCRIBE_CHANNEL, () => {
303303
statusTelemetryRendererSubscriptions = Math.max(0, statusTelemetryRendererSubscriptions - 1);
304304
if (statusTelemetryRendererSubscriptions === 0) {
305305
pythonBridge?.stopStatusTelemetryUpdateStream();
306306
}
307307
});
308308

309-
ipcMain.handle(MODEL_DOWNLOAD_SUBSCRIBE_CHANNEL, async () => {
309+
ipcMain.handle(MODEL_DOWNLOAD_SUBSCRIBE_CHANNEL, () => {
310310
modelDownloadRendererSubscriptions += 1;
311311
if (modelDownloadRendererSubscriptions === 1) {
312312
startModelDownloadUpdateForwarder();
313313
}
314314
});
315315

316-
ipcMain.handle(MODEL_DOWNLOAD_UNSUBSCRIBE_CHANNEL, async () => {
316+
ipcMain.handle(MODEL_DOWNLOAD_UNSUBSCRIBE_CHANNEL, () => {
317317
modelDownloadRendererSubscriptions = Math.max(0, modelDownloadRendererSubscriptions - 1);
318318
if (modelDownloadRendererSubscriptions === 0) {
319319
pythonBridge?.stopModelDownloadUpdateStream();

0 commit comments

Comments
 (0)