From bbdd0ac06d1d04b8bdd6e6a981e11a6a34bb659f Mon Sep 17 00:00:00 2001 From: Ipmake <60793254+Ipmake@users.noreply.github.com> Date: Tue, 9 May 2023 21:39:51 +0200 Subject: [PATCH] Forgot the Return Statement --- public/electron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/electron.js b/public/electron.js index ee7025b..143cca3 100644 --- a/public/electron.js +++ b/public/electron.js @@ -122,7 +122,7 @@ function createWindow () { return dialog.showErrorBox("Error", "Selected directory is identical.") } - if(!fs.existsSync(arg.path)) event.returnValue = result + if(!fs.existsSync(arg.path)) return event.returnValue = result const files = fs.readdirSync(arg.path)