Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicSponge committed May 27, 2024
1 parent 5978b0d commit d838af3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ ipcMain.on('verify-cwd', (_event, data) => {
}

try {
const stats = fs.lstatSync(data)
stats.isDirectory() ?
fs.lstatSync(data).isDirectory() ?
verifyDialog(`Path "${data}" exists.`, `info`) :
verifyDialog(`"${data}" is not a directory!`, `warning`)
} catch (error:any) {
Expand Down

0 comments on commit d838af3

Please sign in to comment.