Commit 9656329
Simplify multirange header length check
rp is 0 at this point, so the re-slice in len(src[rp:]) was dead
weight. Use len(src) directly and match the error message to the
equivalent guard in array.go ("array header too short: %d").
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 20d88e8 commit 9656329
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
| 210 | + | |
| 211 | + | |
212 | 212 | | |
| 213 | + | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
| |||
0 commit comments