Repository navigation
Commit a1b5bf0
fix(scan): remove redundant continue and simplify pattern matches
Removed an unnecessary `continue` statement in the quote state machine that was unreachable after the closing quote handling. Also refactored two `match` expressions into more idiomatic `let Some` patterns with guard conditions, making the control flow clearer without changing behaviour.
Auto-committed-on: dragonfly
Co-authored-by: Medulla <medulla@tinyhumans.ai>1 parent 4c87e50 commit a1b5bf0
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | 269 | | |
271 | 270 | | |
272 | 271 | | |
| |||
431 | 430 | | |
432 | 431 | | |
433 | 432 | | |
434 | | - | |
435 | | - | |
436 | | - | |
| 433 | + | |
| 434 | + | |
437 | 435 | | |
438 | 436 | | |
439 | 437 | | |
| |||
485 | 483 | | |
486 | 484 | | |
487 | 485 | | |
488 | | - | |
489 | | - | |
490 | | - | |
| 486 | + | |
| 487 | + | |
491 | 488 | | |
492 | 489 | | |
493 | 490 | | |
| |||
0 commit comments