Skip to content

Commit

Permalink
Forgot the Return Statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipmake committed May 9, 2023
1 parent 9370d52 commit bbdd0ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit bbdd0ac

Please sign in to comment.