Commit 5bc1256
committed
fix(codex): bracket setTimeout body to satisfy eslint no-promise-executor-return
The burst-dedup test awaited `new Promise<void>((resolve) => setTimeout(() => resolve(), 100))`.
The arrow-body `() => resolve()` is flagged by eslint(no-promise-executor-return)
because the implicit `return resolve()` is read as "return in Promise executor".
Bracketing the body so resolve() is a statement (not an expression) clears the
rule while keeping the test behavior identical.
Caught by CI check-lint on the round-1 push.1 parent 9bc565b commit 5bc1256
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
323 | 325 | | |
324 | 326 | | |
325 | 327 | | |
| |||
348 | 350 | | |
349 | 351 | | |
350 | 352 | | |
351 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
352 | 356 | | |
353 | 357 | | |
354 | 358 | | |
| |||
383 | 387 | | |
384 | 388 | | |
385 | 389 | | |
386 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
387 | 395 | | |
388 | 396 | | |
389 | 397 | | |
| |||
0 commit comments