Fix some unicorn/prefer-else-if violations (#19394)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-06-17 07:31:04 +08:00
1 parent e41cbf4594
commit bfe8858f5e
7 files changed
+8 -15

No files matched your search

+1 -3
View File
@@ -17,9 +17,7 @@ for (let i = 0; i < groupCount; i++) {
for (let i = 0; i < groupSize; i++) {
await format(sourceText, { parser: "typescript" });
}
}
if (method === "parallel") {
} else if (method === "parallel") {
await Promise.allSettled(
Array.from({ length: groupSize }, () =>
format(sourceText, { parser: "typescript" }),