Skip to content

Commit

Permalink
electron-updater: don't clean temp directory if cached update file do…
Browse files Browse the repository at this point in the history
…esn't exist (#5354)
  • Loading branch information
adam-lynch committed Nov 28, 2020
1 parent 9e7b3c3 commit 552f1a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/electron-updater/src/DownloadedUpdateHelper.ts
Expand Up @@ -133,8 +133,7 @@ export class DownloadedUpdateHelper {

const updateFile = path.join(this.cacheDirForPendingUpdate, cachedInfo.fileName)
if (!(await pathExists(updateFile))) {
logger.info("Cached update file doesn't exist, directory for cached update will be cleaned")
await this.cleanCacheDirForPendingUpdate()
logger.info("Cached update file doesn't exist")
return null
}

Expand Down

0 comments on commit 552f1a4

Please sign in to comment.