chore: clean unused require

This commit is contained in:
Louis 2023-10-02 15:26:53 +07:00 committed by Louis
parent 0a5a39c720
commit 7b0de2bc0f

View File

@ -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) => {