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

Commit

Permalink
deps: Fix errors in userRequired/existing module flagging
Browse files Browse the repository at this point in the history
Fixes bug introduced with 8397552

PR-URL: #10338
Credit/Blame: @iarna
  • Loading branch information
iarna committed Nov 12, 2015
1 parent 06c732f commit bec4a84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/install/deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ function recalculateMetadata (tree, log, seen, next) {
[asyncMap, tomark, markDeps],
[asyncMap, tree.children, function (child, done) { recalculateMetadata(child, log, seen, done) }]
], function () {
tree.userRequired = tree.package._requiredBy.some(function (req) { req === '#USER' })
tree.existing = tree.package._requiredBy.some(function (req) { req === '#EXISTING' })
tree.userRequired = tree.package._requiredBy.some(function (req) { return req === '#USER' })
tree.existing = tree.package._requiredBy.some(function (req) { return req === '#EXISTING' })
tree.package._location = flatNameFromTree(tree)
next(null, tree)
})
Expand Down

0 comments on commit bec4a84

Please sign in to comment.