You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: golangci-lint findings, third delivery (#2167)
Since I started using this project on my production workloads, I would
like to contribute to the project.
This third delivery is still fixing easy stuff like:
- `golangci-lint run ./... | grep "S1001:"`
- search/searcher/search_conjunction.go:53:2: S1001: should use copy(to,
from) instead of a loop (gosimple)
- search/searcher/search_disjunction_slice.go:82:3: S1001: should use
copy(to, from) instead of a loop (gosimple)
- `golangci-lint run ./... | grep "ineffectual assignment"`->
- search/sort.go:49:14: ineffectual assignment to ok (ineffassign)
- index/scorch/reader_test.go:72:2: ineffectual assignment to
expectedCount (ineffassign)
- index/upsidedown/row.go:645:7: ineffectual assignment to
arrayPositionsLen (ineffassign)
- `golangci-lint run ./... | grep "S1017:"`
- search/query/regexp.go:72:2: S1017: should replace this `if` statement
with an unconditional `strings.TrimPrefix` (gosimple)
- added a new file `search/sort_test.go` to test a change before and
after it
- minor formatting changes
0 commit comments