mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 09:17:38 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -117,7 +117,9 @@ describe("exec approval handlers", () => {
|
||||
|
||||
const context = {
|
||||
broadcast: (event: string, payload: unknown) => {
|
||||
if (event !== "exec.approval.requested") return;
|
||||
if (event !== "exec.approval.requested") {
|
||||
return;
|
||||
}
|
||||
const id = (payload as { id?: string })?.id ?? "";
|
||||
void handlers["exec.approval.resolve"]({
|
||||
params: { id, decision: "allow-once" },
|
||||
|
||||
Reference in New Issue
Block a user