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
+9 -3
View File
@@ -24,7 +24,9 @@ describe("resolvePreferredNodePath", () => {
it("uses system node when it meets the minimum version", async () => {
fsMocks.access.mockImplementation(async (target: string) => {
if (target === darwinNode) return;
if (target === darwinNode) {
return;
}
throw new Error("missing");
});
@@ -43,7 +45,9 @@ describe("resolvePreferredNodePath", () => {
it("skips system node when it is too old", async () => {
fsMocks.access.mockImplementation(async (target: string) => {
if (target === darwinNode) return;
if (target === darwinNode) {
return;
}
throw new Error("missing");
});
@@ -82,7 +86,9 @@ describe("resolveSystemNodeInfo", () => {
it("returns supported info when version is new enough", async () => {
fsMocks.access.mockImplementation(async (target: string) => {
if (target === darwinNode) return;
if (target === darwinNode) {
return;
}
throw new Error("missing");
});