mirror of
https://github.com/mjl-/mox.git
synced 2025-07-14 02: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:
11
develop.txt
11
develop.txt
@ -13,11 +13,12 @@ code paths are reachable/testable with mox localserve, but some use cases will
|
||||
require a full setup.
|
||||
|
||||
Before committing, run at least "make fmt" and "make check" (which requires
|
||||
staticcheck, run "make install-staticcheck" once). Also run "make check-shadow"
|
||||
and fix any shadowed variables other than "err" (which are filtered out, but
|
||||
causes the command to always exit with an error code; run "make install-shadow"
|
||||
once to install the shadow command). If you've updated RFC references, run
|
||||
"make" in rfc/, it verifies the referenced files exist.
|
||||
staticcheck and ineffassign, run "make install-staticcheck install-ineffassign"
|
||||
once). Also run "make check-shadow" and fix any shadowed variables other than
|
||||
"err" (which are filtered out, but causes the command to always exit with an
|
||||
error code; run "make install-shadow" once to install the shadow command). If
|
||||
you've updated RFC references, run "make" in rfc/, it verifies the referenced
|
||||
files exist.
|
||||
|
||||
When making changes to the public API of a package listed in
|
||||
apidiff/packages.txt, run "make genapidiff" to update the list of changes in
|
||||
|
Reference in New Issue
Block a user