fix findings from gopls

This commit is contained in:
Mechiel Lukkien 2025-05-13 09:33:37 +02:00
parent aff279711c
commit 70bbfc8f10
3 changed files with 3 additions and 3 deletions

View File

@ -389,7 +389,7 @@ func xbackupctl(ctx context.Context, xctl *ctl) {
srcAcmeDir := filepath.Join(srcDataDir, "acme")
if _, err := os.Stat(srcAcmeDir); err == nil {
backupDir("acme")
} else if err != nil && !os.IsNotExist(err) {
} else if !os.IsNotExist(err) {
xerrx("copying acme/", err)
}

View File

@ -3974,7 +3974,7 @@ Opens database files directly, not going through a running mox instance.
return nil
}
wq := moxio.NewWorkQueue[store.Message, threadPrep](procs, workqueuesize, prepareMessages, processMessage)
wq := moxio.NewWorkQueue(procs, workqueuesize, prepareMessages, processMessage)
err = a.DB.Write(context.Background(), func(tx *bstore.Tx) error {
q := bstore.QueryTx[store.Message](tx)

View File

@ -348,7 +348,7 @@ possibly making them potentially no longer readable by the previous version.
if du.MessageSize != totalSize {
checkf(errors.New(`wrong total message size, see mox recalculatemailboxcounts"`), dbpath, "account has wrong total message size %d, should be %d", du.MessageSize, totalSize)
}
} else if err != nil && !errors.Is(err, bstore.ErrAbsent) {
} else if !errors.Is(err, bstore.ErrAbsent) {
checkf(err, dbpath, "get disk usage")
}
}