From 7b0de2bc0f9542732ef7d62d6abcc4456f0b7ef1 Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 2 Oct 2023 15:26:53 +0700 Subject: [PATCH] chore: clean unused require --- electron/core/plugins/inference-plugin/module.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/electron/core/plugins/inference-plugin/module.js b/electron/core/plugins/inference-plugin/module.js index ea8e097a8..ea392c31e 100644 --- a/electron/core/plugins/inference-plugin/module.js +++ b/electron/core/plugins/inference-plugin/module.js @@ -2,7 +2,6 @@ const path = require("path"); const { app, dialog } = require("electron"); const { spawn } = require("child_process"); const fs = require("fs"); -var exec = require("child_process").exec; let subprocess = null; @@ -63,7 +62,7 @@ async function initModel(product) { : path.join(binaryFolder, "nitro"); // Execute the binary - subprocess = spawn(binaryPath, [configFilePath], {cwd: binaryFolder}); + subprocess = spawn(binaryPath, [configFilePath], { cwd: binaryFolder }); // Handle subprocess output subprocess.stdout.on("data", (data) => {