Commit 850b9cd
refactor(core): drop dead invariant checks in merged-group path
After the input split at the top of coalesced_get, merged groups only
ever contain RangeByteRequest members. Replace the per-element
isinstance filters (and the defensive ``else 0`` sort-key branch) with a
single assertion at the top of the merged-group block and direct
attribute access. Also remove the unreachable ``if total == 0: return``
guard (``indexed`` is non-empty by construction once we pass the earlier
guard).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 913928c commit 850b9cd
1 file changed
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | 121 | | |
124 | 122 | | |
125 | 123 | | |
| |||
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
145 | | - | |
146 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
152 | 151 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 152 | + | |
157 | 153 | | |
158 | 154 | | |
159 | | - | |
160 | | - | |
| 155 | + | |
161 | 156 | | |
162 | 157 | | |
163 | 158 | | |
| |||
0 commit comments