mirror of
https://github.com/mjl-/mox.git
synced 2025-07-14 12:54:37 +03:00
fix warnings by ineffassign, with a one actual issue
In store/search.go, we would make a copy of a byte array, but then still use the original instead of the copy. Could result in search operations not finding messages that do have the content, but under very unlikely conditions only. We'll keep running ineffassign with "make check", useful enough.
This commit is contained in:
4
Makefile
4
Makefile
@ -42,6 +42,9 @@ test-upgrade: build
|
||||
install-staticcheck:
|
||||
CGO_ENABLED=0 go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||
|
||||
install-ineffassign:
|
||||
CGO_ENABLED=0 go install github.com/gordonklaus/ineffassign@v0.1.0
|
||||
|
||||
check:
|
||||
CGO_ENABLED=0 go vet -tags integration
|
||||
CGO_ENABLED=0 go vet -tags website website/website.go
|
||||
@ -55,6 +58,7 @@ check:
|
||||
CGO_ENABLED=0 staticcheck -tags link rfc/link.go
|
||||
CGO_ENABLED=0 staticcheck -tags errata rfc/errata.go
|
||||
CGO_ENABLED=0 staticcheck -tags xr rfc/xr.go
|
||||
CGO_ENABLED=0 ineffassign ./...
|
||||
|
||||
# needed for check-shadow
|
||||
install-shadow:
|
||||
|
Reference in New Issue
Block a user