Commit 1298d36
committed
fix: correct off-by-one error in findErrorBlockEnd defer insertion
The defer sess.Release() statements were being inserted inside error blocks
instead of after them, making the defer unreachable. This fixes the line
number mapping from AST positions back to the original lines array by
removing the unnecessary -1 offset.1 parent e2c9472 commit 1298d36
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
0 commit comments