Skip to content

Commit

Permalink
remove duplicate log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Sep 3, 2020
1 parent 760f37d commit 9d17475
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,10 @@ async function checkUpdate () {
}

autoUpdater.logger = log
autoUpdater.on('error', (err) => {
log.error(err === null ? 'unknown updater error' : (err.stack || err).toString())
checkingUpdate = false
})
autoUpdater.on('checking-for-update', () => { log.info('Checking for update...') })
autoUpdater.on('update-available', () => { log.info('Update available.') })
autoUpdater.on('update-not-available', () => {
log.info('Current version is up-to-date.')
checkingUpdate = false
})
autoUpdater.on('error', () => { checkingUpdate = false })
autoUpdater.on('update-not-available', () => { checkingUpdate = false })
autoUpdater.on('update-downloaded', () => {
log.info('Update downloaded, application will be quit for update.')
log.warn('Update downloaded, application will be quit for update.')
if (isLoginWindowOpen) {
pendingUpdate = true
} else {
Expand Down

0 comments on commit 9d17475

Please sign in to comment.