codefactor improvements

This commit is contained in:
DJ2LS 2022-11-08 15:03:47 +01:00
parent 871c6c1756
commit 3e52f0f0f3

View file

@ -10,7 +10,6 @@ const path = require('path');
const fs = require('fs'); const fs = require('fs');
const os = require('os'); const os = require('os');
const spawn = require('child_process').spawn; const spawn = require('child_process').spawn;
const exec = require('child_process').exec;
const log = require('electron-log'); const log = require('electron-log');
const mainLog = log.scope('main'); const mainLog = log.scope('main');
@ -876,7 +875,7 @@ ipcMain.on('request-check-rigctld',(event, data)=>{
win.webContents.send('action-check-rigctld', 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 + ")"; Data["state"] = "connection possible - (" + data.ip + ":" + data.port + ")";
win.webContents.send('action-check-rigctld', Data); win.webContents.send('action-check-rigctld', Data);
}) })