From 627579f837011af1b3b0e59164feacae295007ef Mon Sep 17 00:00:00 2001 From: wizard <112275929+famouswizard@users.noreply.github.com> Date: Wed, 23 Apr 2025 21:57:35 +0300 Subject: [PATCH] fix: unnecessary use of `map()` for side effects --- scripts/clean-apps.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/clean-apps.ts b/scripts/clean-apps.ts index 9db842b45..02ac985d7 100755 --- a/scripts/clean-apps.ts +++ b/scripts/clean-apps.ts @@ -20,7 +20,11 @@ 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()