From fd8e71d8d6991aa6b2c40a40273a9864264964f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=9A=E8=B0=94=E7=9A=84=E7=8C=AB?= Date: Tue, 31 Mar 2020 16:07:00 +0800 Subject: [PATCH] chore: rm unused arguments (#12) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 唯刃 --- lib/profiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/profiler.js b/lib/profiler.js index fbb9422..9055692 100644 --- a/lib/profiler.js +++ b/lib/profiler.js @@ -48,7 +48,7 @@ function getUsedNodeModules() { .filter( directory => path.basename(path.dirname(directory)) === "node_modules" ) - .filter(directory => moduleNameFilter(path.basename(directory), directory)); + .filter(directory => moduleNameFilter(path.basename(directory))); const versions = matchingModulePaths.map(directory => { const name = path.basename(directory);