Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
No need to have it log that it's doing nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Aug 22, 2010
1 parent 5d72b24 commit 3cf0274
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/build.js
Expand Up @@ -81,8 +81,7 @@ function autoUpdate (pkg, cb) {
.filter(function (v) { return v !== pkg.version })
.sort(semver.sort)
, maxHave = versions.pop()
if (!maxHave) return log(
"only version, no dependencies to update", "update-dependents", cb)
if (!maxHave) return cb()
if (!semver.gt(pkg.version, maxHave)) return log(
"downgrade, not updating dependencencies", "update-dependents", cb)
npm.commands["update-dependents"]([pkg], cb)
Expand Down

0 comments on commit 3cf0274

Please sign in to comment.