Skip to content

Commit f21d02b

Browse files
committed
Renames the thunk
1 parent 0584042 commit f21d02b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/async.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ var getPackageCandidates = function getPackageCandidates(x, start, opts) {
4444
return dirs;
4545
};
4646

47-
var defaultPackageIterator = function defaultPackageIterator(x, start, getPackageCandidates, opts) {
48-
return getPackageCandidates();
47+
var defaultPackageIterator = function defaultPackageIterator(x, start, packageCandidatesThunk, opts) {
48+
return packageCandidatesThunk();
4949
};
5050

5151
module.exports = function resolve(x, options, callback) {

lib/sync.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ var getPackageCandidates = function getPackageCandidates(x, start, opts) {
4646
return dirs;
4747
};
4848

49-
var defaultPackageIterator = function defaultPackageIterator(x, start, getPackageCandidates, opts) {
50-
return getPackageCandidates();
49+
var defaultPackageIterator = function defaultPackageIterator(x, start, packageCandidatesThunk, opts) {
50+
return packageCandidatesThunk();
5151
};
5252

5353
module.exports = function (x, options) {

0 commit comments

Comments
 (0)