Skip to content

Commit

Permalink
!fixup fix(update-notifier): parallelize check for updates
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
isaacs and ljharb authored Jun 2, 2021
1 parent f5ba49d commit cf94ff1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ module.exports = (process) => {
npm.config.set('usage', false, 'cli')
}

npm.updateNotification = updateNotifier(npm).then(notification =>
npm.updateNotification = notification)
updateNotifier(npm).then(notification => {
npm.updateNotification = notification
})

const cmd = npm.argv.shift()
const impl = npm.commands[cmd]
Expand Down

0 comments on commit cf94ff1

Please sign in to comment.