From 00ad88d7f136fb91bf4d4da494ed2e53c54b3594 Mon Sep 17 00:00:00 2001 From: kazak Date: Sun, 9 Mar 2025 14:01:53 +0200 Subject: [PATCH] chore: replace `map()` with `forEach()` for better clarity --- scripts/clean-apps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/clean-apps.ts b/scripts/clean-apps.ts index 9db842b45..c73676a42 100755 --- a/scripts/clean-apps.ts +++ b/scripts/clean-apps.ts @@ -20,7 +20,7 @@ async function main() { .filter((file) => file.isDirectory()) .map((dir) => dir.name) - folders.map((app) => gitIgnored.map((f) => rmSync(`${folderName}/${app}/${f}`, { recursive: true, force: true }))) + folders.forEach((app) => gitIgnored.forEach((f) => rmSync(`${folderName}/${app}/${f}`, { recursive: true, force: true }))) } main()