chore: Enable "curly" rule to avoid single-statement if confusion/errors.

This commit is contained in:
cpojer
2026-01-31 16:19:20 +09:00
parent 009b16fab8
commit 5ceff756e1
1266 changed files with 27871 additions and 9393 deletions

View File

@@ -39,7 +39,9 @@ test("background exec is not killed when tool signal aborts", async () => {
expect(running?.exited).toBe(false);
} finally {
const pid = running?.pid;
if (pid) killProcessTree(pid);
if (pid) {
killProcessTree(pid);
}
}
});
@@ -76,7 +78,9 @@ test("background exec still times out after tool signal abort", async () => {
expect(finished?.status).toBe("failed");
} finally {
const pid = running?.pid;
if (pid) killProcessTree(pid);
if (pid) {
killProcessTree(pid);
}
}
});
@@ -105,7 +109,9 @@ test("yielded background exec is not killed when tool signal aborts", async () =
expect(running?.exited).toBe(false);
} finally {
const pid = running?.pid;
if (pid) killProcessTree(pid);
if (pid) {
killProcessTree(pid);
}
}
});
@@ -135,6 +141,8 @@ test("yielded background exec still times out", async () => {
expect(finished?.status).toBe("failed");
} finally {
const pid = running?.pid;
if (pid) killProcessTree(pid);
if (pid) {
killProcessTree(pid);
}
}
});