mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 02:12:44 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -47,7 +47,9 @@ describe("media store redirects", () => {
|
||||
const res = new PassThrough();
|
||||
const req = {
|
||||
on: (event: string, handler: (...args: unknown[]) => void) => {
|
||||
if (event === "error") res.on("error", handler);
|
||||
if (event === "error") {
|
||||
res.on("error", handler);
|
||||
}
|
||||
return req;
|
||||
},
|
||||
end: () => undefined,
|
||||
@@ -88,7 +90,9 @@ describe("media store redirects", () => {
|
||||
const res = new PassThrough();
|
||||
const req = {
|
||||
on: (event: string, handler: (...args: unknown[]) => void) => {
|
||||
if (event === "error") res.on("error", handler);
|
||||
if (event === "error") {
|
||||
res.on("error", handler);
|
||||
}
|
||||
return req;
|
||||
},
|
||||
end: () => undefined,
|
||||
|
||||
Reference in New Issue
Block a user