Commit 24d1b49
TASK-056: simplify reject_terminus_collision
Address two code-simplifier majors carried in the unworked review
report for TASK-056:
- Remove the `opposite_is_prefix` alias variable; derive the
`existing_kind` string from `want_is_prefix` directly with the
inverse ternary.
- Collapse the two-step `collision = true` if/else-if pattern in the
`want_is_prefix=true` branch into a single boolean expression,
making the symmetry with the `!want_is_prefix` branch visible and
letting `collision` be `const`.
No behaviour change. routing_regression (26/26, 99 checks) and
webserver_register_path_prefix (19/19, 38 checks) still green.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 09c4dcc commit 24d1b49
1 file changed
Lines changed: 6 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
241 | 228 | | |
242 | 229 | | |
243 | | - | |
| 230 | + | |
244 | 231 | | |
245 | 232 | | |
246 | 233 | | |
| |||
0 commit comments