Skip to content

Commit

Permalink
fix for async parameterized readFile
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Feb 19, 2013
1 parent 7033bbb commit 2d4e80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/async.js
Expand Up @@ -63,7 +63,7 @@ module.exports = function resolve (x, opts, cb) {
if (err) return cb(err);
if (!ex) return loadAsFile(path.join(x, '/index'), cb);

readFile(pkgfile, 'utf8', function (err, body) {
readFile(pkgfile, function (err, body) {
if (err) return cb(err);
try {
var pkg = JSON.parse(body);
Expand Down

0 comments on commit 2d4e80e

Please sign in to comment.