Skip to content

Commit

Permalink
fix: Remove useless(?) timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Mar 6, 2024
1 parent 9841a4b commit ac5c286
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/updater/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ export const autoUpdater = () =>
if (versionName.includes(currentVersion)) {
wLogger.info(`You're using latest version [${currentVersion}] `);

if (fs.existsSync(fileDestination))
if (fs.existsSync(fileDestination)) {
await deleteNotLocked(fileDestination);
await sleep(5 * 1000);
if (fs.existsSync(backupExecutablePath))
}

if (fs.existsSync(backupExecutablePath)) {
await deleteNotLocked(backupExecutablePath);
}

resolve('exact');
return;
Expand Down

0 comments on commit ac5c286

Please sign in to comment.