From e30bd324a3552fae3089110d39b61ddced66ddee Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Fri, 18 Mar 2022 09:53:02 +0100 Subject: go vet: composite literal uses unkeyed fields This commit fixes all occurrences of the abovementioned lint-error in the codebase. Signed-off-by: Moritz Poldrack Acked-by: Robin Jarry --- worker/imap/flags.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'worker/imap/flags.go') diff --git a/worker/imap/flags.go b/worker/imap/flags.go index 7ab82f25..cc8a8cee 100644 --- a/worker/imap/flags.go +++ b/worker/imap/flags.go @@ -40,7 +40,7 @@ func (imapw *IMAPWorker) handleDeleteMessages(msg *types.DeleteMessages) { Message: types.RespondTo(msg), Uids: deleted, }, nil) - imapw.worker.PostMessage(&types.Done{types.RespondTo(msg)}, nil) + imapw.worker.PostMessage(&types.Done{Message: types.RespondTo(msg)}, nil) } } @@ -71,7 +71,7 @@ func (imapw *IMAPWorker) handleAnsweredMessages(msg *types.AnsweredMessages) { imapw.worker.Logger.Printf("could not fetch headers: %s", err) emitErr(err) case *types.Done: - imapw.worker.PostMessage(&types.Done{types.RespondTo(msg)}, nil) + imapw.worker.PostMessage(&types.Done{Message: types.RespondTo(msg)}, nil) } }) } @@ -102,7 +102,7 @@ func (imapw *IMAPWorker) handleFlagMessages(msg *types.FlagMessages) { imapw.worker.Logger.Printf("could not fetch headers: %s", err) emitErr(err) case *types.Done: - imapw.worker.PostMessage(&types.Done{types.RespondTo(msg)}, nil) + imapw.worker.PostMessage(&types.Done{Message: types.RespondTo(msg)}, nil) } }) } -- cgit