From 1b0014fcbde711a316b25df9e4577809bc448fac Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Tue, 9 Jun 2020 17:58:39 +0300 Subject: [PATCH] Remove unintended 'console.log' --- resources/utils.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/resources/utils.js b/resources/utils.js index 85e2f28bfe..e72f9c84d1 100644 --- a/resources/utils.js +++ b/resources/utils.js @@ -49,13 +49,6 @@ function rmdirRecursive(dirPath) { } function readdirRecursive(dirPath, opts = {}) { - console.log('-------'); - const result = readdirRecursive2(dirPath, opts); - console.log('+++++++'); - return result; -} - -function readdirRecursive2(dirPath, opts = {}) { const { ignoreDir } = opts; const result = []; for (const dirent of fs.readdirSync(dirPath, { withFileTypes: true })) { @@ -68,7 +61,7 @@ function readdirRecursive2(dirPath, opts = {}) { if (ignoreDir && ignoreDir.test(name)) { continue; } - const list = readdirRecursive2(path.join(dirPath, name), opts).map((f) => + const list = readdirRecursive(path.join(dirPath, name), opts).map((f) => path.join(name, f), ); result.push(...list);