e30bd324a3
This commit fixes all occurrences of the abovementioned lint-error in the codebase. Signed-off-by: Moritz Poldrack <git@moritz.sh> Acked-by: Robin Jarry <robin@jarry.cc>
19 lines
426 B
Go
19 lines
426 B
Go
package imap
|
|
|
|
import (
|
|
"git.sr.ht/~rjarry/aerc/worker/types"
|
|
)
|
|
|
|
func (imapw *IMAPWorker) handleRemoveDirectory(msg *types.RemoveDirectory) {
|
|
if err := imapw.client.Delete(msg.Directory); err != nil {
|
|
if msg.Quiet {
|
|
return
|
|
}
|
|
imapw.worker.PostMessage(&types.Error{
|
|
Message: types.RespondTo(msg),
|
|
Error: err,
|
|
}, nil)
|
|
} else {
|
|
imapw.worker.PostMessage(&types.Done{Message: types.RespondTo(msg)}, nil)
|
|
}
|
|
}
|