chore: clean unused require
This commit is contained in:
parent
0a5a39c720
commit
7b0de2bc0f
@ -2,7 +2,6 @@ const path = require("path");
|
|||||||
const { app, dialog } = require("electron");
|
const { app, dialog } = require("electron");
|
||||||
const { spawn } = require("child_process");
|
const { spawn } = require("child_process");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
var exec = require("child_process").exec;
|
|
||||||
|
|
||||||
let subprocess = null;
|
let subprocess = null;
|
||||||
|
|
||||||
@ -63,7 +62,7 @@ async function initModel(product) {
|
|||||||
: path.join(binaryFolder, "nitro");
|
: path.join(binaryFolder, "nitro");
|
||||||
// Execute the binary
|
// Execute the binary
|
||||||
|
|
||||||
subprocess = spawn(binaryPath, [configFilePath], {cwd: binaryFolder});
|
subprocess = spawn(binaryPath, [configFilePath], { cwd: binaryFolder });
|
||||||
|
|
||||||
// Handle subprocess output
|
// Handle subprocess output
|
||||||
subprocess.stdout.on("data", (data) => {
|
subprocess.stdout.on("data", (data) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user