style: auto-fix ESLint issues (curly braces and formatting)
- Add curly braces to all if/else/for/while statements - Fix indentation and trailing spaces - Auto-fixed 372 linting errors using eslint --fix - Remaining issues are warnings only (non-null assertions, explicit any types)
This commit is contained in:
@@ -36,7 +36,7 @@ function mockResponse(): ServerResponse & { statusCode_: number; body_: string;
|
||||
headers_: {},
|
||||
writeHead(code: number, headers?: Record<string, string>) {
|
||||
res.statusCode_ = code;
|
||||
if (headers) res.headers_ = headers;
|
||||
if (headers) {res.headers_ = headers;}
|
||||
return res;
|
||||
},
|
||||
end(body?: string) {
|
||||
|
||||
Reference in New Issue
Block a user