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:
@@ -134,7 +134,7 @@ describe('withRetry', () => {
|
||||
let callCount = 0;
|
||||
const fn = vi.fn().mockImplementation(() => {
|
||||
callCount++;
|
||||
if (callCount < 3) return Promise.reject(new Error('fail'));
|
||||
if (callCount < 3) {return Promise.reject(new Error('fail'));}
|
||||
return Promise.resolve('ok');
|
||||
});
|
||||
|
||||
@@ -166,7 +166,7 @@ describe('withRetry', () => {
|
||||
|
||||
const fn = vi.fn().mockImplementation(() => {
|
||||
timestamps.push(Date.now());
|
||||
if (timestamps.length < 3) return Promise.reject(new Error('fail'));
|
||||
if (timestamps.length < 3) {return Promise.reject(new Error('fail'));}
|
||||
return Promise.resolve('ok');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user