Commit a16d0ee
committed
refactor: Simpler first boundary check
The index=1 and index>=2 cases can be merged because "buffer[-1,1]" will return an empty slice, so "buffer[index-2, index] != CRLF" correctly detects bad stuff in front of the first boundary for both cases. This saves us a couple of ops on the good path and is also a bit easier to read.1 parent b9e225e commit a16d0ee
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
| 402 | + | |
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| |||
0 commit comments