Skip to content

Commit 503c746

Browse files
author
James Halliday
committed
fix for the failing case
1 parent 612cac2 commit 503c746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/async.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module.exports = function resolve (x, opts, cb) {
104104

105105
var pkgfile = path.join(dir, 'package.json');
106106
isFile(pkgfile, function (err, ex) {
107-
if (err) return cb(err);
107+
// on err, ex is false
108108
if (!ex) return loadpkg(
109109
dir.replace(/[\\\/]*[^\\\/]+[\\\/]*/, ''), cb
110110
);

0 commit comments

Comments
 (0)