Commit d8a329d
committed
fix(extractor): use if-let-else continue in extract_var_init_type outer loop
Replace `declarator.child(i)?` with `let Some(child) = ... else { continue }`
to skip None child slots rather than returning None from the entire function.
Matches the inner loop pattern and the TypeScript mirror's optional-chaining.1 parent 3074e93 commit d8a329d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| |||
0 commit comments