aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap/flags.go
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2022-03-18 09:53:02 +0100
committerRobin Jarry <robin@jarry.cc>2022-03-18 13:33:16 +0100
commite30bd324a3552fae3089110d39b61ddced66ddee (patch)
treec1d3ea03094f6781c082b627f04398909ae15234 /worker/imap/flags.go
parent62a5ebb1e19aeb36f8451510bc03d5dbe986fb04 (diff)
downloadaerc-e30bd324a3552fae3089110d39b61ddced66ddee.tar.gz
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 <git@moritz.sh> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/imap/flags.go')
-rw-r--r--worker/imap/flags.go6
1 files changed, 3 insertions, 3 deletions
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)
}
})
}