Commit ca99f1c
Address PR #1405 review: use parse with exceptions disabled
Replace double-parsing approach (accept() then parse()) with single
parse() call using allow_exceptions=false and is_discarded() check.
This eliminates redundant parsing and removes the need for try/catch.
Addresses review comments from lalitb and ThomsonTan.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 374a971 commit ca99f1c
1 file changed
+17
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
174 | 176 | | |
175 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
176 | 180 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
183 | 190 | | |
184 | | - | |
| 191 | + | |
185 | 192 | | |
186 | 193 | | |
187 | 194 | | |
| |||
240 | 247 | | |
241 | 248 | | |
242 | 249 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
| |||
0 commit comments