Skip to content

Commit

Permalink
Remove unintended 'console.log'
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Jun 9, 2020
1 parent 9058ab4 commit 1b0014f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions resources/utils.js
Expand Up @@ -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 })) {
Expand All @@ -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);
Expand Down

0 comments on commit 1b0014f

Please sign in to comment.