Skip to content

Commit

Permalink
Don't clear pending update when cacached file name isn't a match
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-lynch committed Oct 19, 2020
1 parent 209874e commit 573b901
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/electron-updater/src/DownloadedUpdateHelper.ts
Original file line number Diff line number Diff line change
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 573b901

Please sign in to comment.