diff options
author | Moritz Poldrack <git@moritz.sh> | 2022-03-18 09:53:02 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-03-18 13:33:16 +0100 |
commit | e30bd324a3552fae3089110d39b61ddced66ddee (patch) | |
tree | c1d3ea03094f6781c082b627f04398909ae15234 /worker/imap/fetch.go | |
parent | 62a5ebb1e19aeb36f8451510bc03d5dbe986fb04 (diff) | |
download | aerc-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/fetch.go')
-rw-r--r-- | worker/imap/fetch.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/worker/imap/fetch.go b/worker/imap/fetch.go index 19f4fa3d..364fe575 100644 --- a/worker/imap/fetch.go +++ b/worker/imap/fetch.go @@ -46,7 +46,7 @@ func (imapw *IMAPWorker) handleFetchMessageHeaders( }, nil) return nil } - header := &mail.Header{message.Header{textprotoHeader}} + header := &mail.Header{Header: message.Header{Header: textprotoHeader}} imapw.worker.PostMessage(&types.MessageInfo{ Message: types.RespondTo(msg), Info: &models.MessageInfo{ @@ -100,7 +100,7 @@ func (imapw *IMAPWorker) handleFetchMessageBodyPart( return fmt.Errorf("failed to read part header: %v", err) } - part, err := message.New(message.Header{h}, + part, err := message.New(message.Header{Header: h}, _msg.GetBody(&partBodySection)) if err != nil { return fmt.Errorf("failed to create message reader: %v", err) @@ -202,5 +202,5 @@ func (imapw *IMAPWorker) handleFetchMessages( return } imapw.worker.PostMessage( - &types.Done{types.RespondTo(msg)}, nil) + &types.Done{Message: types.RespondTo(msg)}, nil) } |