Skip to content
Browse files

Fix for failing test case where pkg.main points to directory.

  • Loading branch information...
1 parent b57a75a commit 8c4078c9dd45c6a92f1f409d70aaccc95be3bfc6 @jaredhanson jaredhanson committed with Jul 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/async.js
View
2 lib/async.js
@@ -51,7 +51,7 @@ module.exports = function resolve (x, opts, cb) {
}
(function load (exts) {
- if (exts.length === 0) return cb(null, undefined);
+ if (exts.length === 0) return cb(null, undefined, pkg);
var file = x + exts[0];
isFile(file, function (err, ex) {

0 comments on commit 8c4078c

Please sign in to comment.
Something went wrong with that request. Please try again.