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 <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Kohei Ueno <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
sinkhaha authored and MylesBorins committed Feb 18, 2023
1 parent 39d7b7d commit 4222e58
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 @@ -1073,7 +1073,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 4222e58

Please sign in to comment.