From b9a8b2c30c08f58843245bd8782d13de8034520a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Matte?= Date: Sat, 30 Sep 2023 05:00:07 -0400 Subject: [PATCH] Change the param name to clarify the intent --- lib/suite.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/suite.js b/lib/suite.js index 796d55c..e2ceb28 100644 --- a/lib/suite.js +++ b/lib/suite.js @@ -1,10 +1,10 @@ import { readdir } from 'node:fs/promises' import { join } from 'node:path' -const walkDir = async function* (dir = '.', ignores = []) { +const walkDir = async function* (dir = '.', exclude = []) { const files = await readdir(dir, { withFileTypes: true }) for (const file of files) { - if (ignores.includes(file.name)) continue + if (exclude.includes(file.name)) continue if (file.isDirectory()) { yield* walkDir(join(dir, file.name))