Skip to content

Commit a01b11b

Browse files
committed
Stylistic changes
1 parent 62e50cc commit a01b11b

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

lib/async.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,14 @@ module.exports = function resolve(x, options, callback) {
300300
}
301301
}
302302
function loadNodeModules(x, start, cb) {
303-
processDirs(cb, packageIterator(x, start, function () {
304-
return getPackageCandidates(x, start, opts);
305-
}, opts));
303+
processDirs(
304+
cb,
305+
packageIterator(
306+
x,
307+
start,
308+
function () { return getPackageCandidates(x, start, opts) },
309+
opts
310+
)
311+
);
306312
}
307313
};

lib/sync.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,12 @@ module.exports = function (x, options) {
175175
}
176176

177177
function loadNodeModulesSync(x, start) {
178-
var dirs = packageIterator(x, start, function () {
179-
return getPackageCandidates(x, start, opts);
180-
}, opts);
178+
var dirs = packageIterator(
179+
x,
180+
start,
181+
function () { return getPackageCandidates(x, start, opts); },
182+
opts
183+
);
181184

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

0 commit comments

Comments
 (0)