Permalink
Browse files

[fix] still accessed property before checking it with `in`

  • Loading branch information...
1 parent e1aa6b0 commit f08e5fcf84fe3086943feb93baa471a00c39966c @fb55 fb55 committed Sep 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/require-analyzer.js
View
@@ -796,7 +796,7 @@ function mergeDependencies(err, deps, pkgDeps, devDeps, bndlDeps, callback) {
});
Object.keys(pkgDeps).forEach(function (d) {
- if ( !(d in merged[d]) ) {
+ if ( !(d in merged) ) {
merged[d] = pkgDeps[d];
}
});

0 comments on commit f08e5fc

Please sign in to comment.