Commit 70de896
fix(expr): resolve 2 CodeQL alerts in the ADR-0058 changes
- expression-conformance.test.ts (HIGH js/file-system-race): the ratchet's spec
walk did statSync(p) then readFileSync(p) — a check-then-use TOCTOU window.
Read the entry type from the single readdir syscall via withFileTypes instead.
- cel-to-filter.ts coerceLiteral (warning, comparison between inconvertible
types): `v !== null` is dead after the preceding line returns for null — drop
it; the early return already guarantees non-null.
No behavior change; cel-to-filter 52 + expression-conformance 7 still green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 626c445 commit 70de896
2 files changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
391 | 393 | | |
392 | 394 | | |
393 | 395 | | |
| |||
0 commit comments