Commit 9c06f42
committed
Simplify AddRange by removing redundant equality check
The pos_start == pos_end early return is unnecessary because
the post-clamp guard (pos_start >= pos_end) already handles it.
After the throw for reversed ranges, clamping can only shrink
the range, so the only empty case is equality.1 parent 6f7a1db commit 9c06f42
1 file changed
+0
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | 137 | | |
141 | 138 | | |
142 | 139 | | |
| |||
0 commit comments