Commit ff237a9
committed
Use strings.SplitSeq in lineWithPrefix (modernize lint)
Range over strings.SplitSeq instead of strings.Split: the seq variant
iterates without allocating the intermediate slice, clearing the
golangci-lint modernize/stringsseq finding.
Co-authored-by: Isaac1 parent aaad18d commit ff237a9
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
0 commit comments