Skip to content

Commit

Permalink
Stylistic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis committed Jan 5, 2020
1 parent 62e50cc commit a01b11b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
12 changes: 9 additions & 3 deletions lib/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,14 @@ module.exports = function resolve(x, options, callback) {
}
}
function loadNodeModules(x, start, cb) {
processDirs(cb, packageIterator(x, start, function () {
return getPackageCandidates(x, start, opts);
}, opts));
processDirs(
cb,
packageIterator(
x,
start,
function () { return getPackageCandidates(x, start, opts) },
opts
)
);
}
};
9 changes: 6 additions & 3 deletions lib/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,12 @@ module.exports = function (x, options) {
}

function loadNodeModulesSync(x, start) {
var dirs = packageIterator(x, start, function () {
return getPackageCandidates(x, start, opts);
}, opts);
var dirs = packageIterator(
x,
start,
function () { return getPackageCandidates(x, start, opts); },
opts
);

for (var i = 0; i < dirs.length; i++) {
var dir = dirs[i];
Expand Down

0 comments on commit a01b11b

Please sign in to comment.