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

@@ -99,7 +99,9 @@ describe("openclaw-tools: subagents", () => {
agentSessionKey: "main",
agentChannel: "whatsapp",
}).find((candidate) => candidate.name === "sessions_spawn");
if (!tool) throw new Error("missing sessions_spawn tool");
if (!tool) {
throw new Error("missing sessions_spawn tool");
}
const result = await tool.execute("call2", {
task: "do thing",
@@ -111,7 +113,9 @@ describe("openclaw-tools: subagents", () => {
runId: "run-1",
});
if (!childRunId) throw new Error("missing child runId");
if (!childRunId) {
throw new Error("missing child runId");
}
emitAgentEvent({
runId: childRunId,
stream: "lifecycle",
@@ -159,7 +163,9 @@ describe("openclaw-tools: subagents", () => {
agentSessionKey: "main",
agentChannel: "whatsapp",
}).find((candidate) => candidate.name === "sessions_spawn");
if (!tool) throw new Error("missing sessions_spawn tool");
if (!tool) {
throw new Error("missing sessions_spawn tool");
}
const result = await tool.execute("call6", {
task: "do thing",