Commit d0d83d4
committed
refactor: remove redundant edge case check in truncate_description
Remove the unnecessary if-check that was doing nothing.
char_indices().next() always returns index 0 for the first character,
so this code was just reassigning truncate_at = 0 without any effect.
All tests pass without this code, confirming it was redundant.1 parent eb8981c commit d0d83d4
1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | 265 | | |
272 | 266 | | |
273 | 267 | | |
| |||
0 commit comments