Skip to content

Commit

Permalink
lib: delete module findPath unused params
Browse files Browse the repository at this point in the history
PR-URL: #45371
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Kohei Ueno <kohei.ueno119@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
sinkhaha authored and danielleadams committed Apr 3, 2023
1 parent c410572 commit 1395e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/modules/cjs/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ Module._resolveFilename = function(request, parent, isMain, options) {
}

// Look up the filename first, since that's the cache key.
const filename = Module._findPath(request, paths, isMain, false);
const filename = Module._findPath(request, paths, isMain);
if (filename) return filename;
const requireStack = [];
for (let cursor = parent;
Expand Down

0 comments on commit 1395e36

Please sign in to comment.