mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 17:38:27 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -24,8 +24,12 @@ vi.mock("../gateway/call.js", () => ({
|
||||
if (typed.method === "agent.wait") {
|
||||
return { status: "error", startedAt: 10, endedAt: 20, error: "boom" };
|
||||
}
|
||||
if (typed.method === "sessions.patch") return {};
|
||||
if (typed.method === "sessions.delete") return {};
|
||||
if (typed.method === "sessions.patch") {
|
||||
return {};
|
||||
}
|
||||
if (typed.method === "sessions.delete") {
|
||||
return {};
|
||||
}
|
||||
return {};
|
||||
}),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user