mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 06:41:22 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -31,8 +31,12 @@ vi.mock("../infra/tailnet.js", () => ({
|
||||
|
||||
vi.mock("./client.js", () => ({
|
||||
describeGatewayCloseCode: (code: number) => {
|
||||
if (code === 1000) return "normal closure";
|
||||
if (code === 1006) return "abnormal closure (no close frame)";
|
||||
if (code === 1000) {
|
||||
return "normal closure";
|
||||
}
|
||||
if (code === 1006) {
|
||||
return "abnormal closure (no close frame)";
|
||||
}
|
||||
return undefined;
|
||||
},
|
||||
GatewayClient: class {
|
||||
|
||||
Reference in New Issue
Block a user