From 3e52f0f0f39f5e853d2a20a676c7b1891c551314 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Tue, 8 Nov 2022 15:03:47 +0100 Subject: [PATCH] codefactor improvements --- gui/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/main.js b/gui/main.js index 4a034e43..d197d905 100644 --- a/gui/main.js +++ b/gui/main.js @@ -10,7 +10,6 @@ const path = require('path'); const fs = require('fs'); const os = require('os'); const spawn = require('child_process').spawn; -const exec = require('child_process').exec; const log = require('electron-log'); const mainLog = log.scope('main'); @@ -876,7 +875,7 @@ ipcMain.on('request-check-rigctld',(event, data)=>{ win.webContents.send('action-check-rigctld', Data); }) - rigctld.on('connect', function(err) { + rigctld.on('connect', function() { Data["state"] = "connection possible - (" + data.ip + ":" + data.port + ")"; win.webContents.send('action-check-rigctld', Data); })