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

@@ -84,8 +84,12 @@ describe("gateway --force helpers", () => {
(execFileSync as unknown as vi.Mock).mockImplementation(() => {
call += 1;
// 1st call: initial listeners to kill; 2nd call: still listed; 3rd call: gone.
if (call === 1) return ["p42", "cnode", ""].join("\n");
if (call === 2) return ["p42", "cnode", ""].join("\n");
if (call === 1) {
return ["p42", "cnode", ""].join("\n");
}
if (call === 2) {
return ["p42", "cnode", ""].join("\n");
}
return "";
});
@@ -116,7 +120,9 @@ describe("gateway --force helpers", () => {
(execFileSync as unknown as vi.Mock).mockImplementation(() => {
call += 1;
// 1st call: initial kill list; then keep showing until after SIGKILL.
if (call <= 6) return ["p42", "cnode", ""].join("\n");
if (call <= 6) {
return ["p42", "cnode", ""].join("\n");
}
return "";
});