mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:04:39 +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:
@ -656,7 +656,6 @@ func TestHookListFilterSort(t *testing.T) {
|
||||
var lr []HookRetired
|
||||
lastID = 0
|
||||
last = ""
|
||||
l = nil
|
||||
for {
|
||||
nl, err := HookRetiredList(ctxbg, HookRetiredFilter{Max: 1}, HookRetiredSort{LastID: lastID, Last: last})
|
||||
tcheck(t, err, "list paginated")
|
||||
|
@ -1435,7 +1435,6 @@ func TestListFilterSort(t *testing.T) {
|
||||
var lr []MsgRetired
|
||||
lastID = 0
|
||||
last = ""
|
||||
l = nil
|
||||
for {
|
||||
nl, err := RetiredList(ctxbg, RetiredFilter{Max: 1}, RetiredSort{LastID: lastID, Last: last})
|
||||
tcheck(t, err, "list paginated")
|
||||
|
Reference in New Issue
Block a user