diff options
author | Moritz Poldrack <git@moritz.sh> | 2022-07-31 22:16:40 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-01 10:44:52 +0200 |
commit | aaf0a0c65673db4b94c0dc200d7394a192128da1 (patch) | |
tree | 44940936efff55b49a6d359d053f55c7ab824e4d /lib/messageview.go | |
parent | 21dcd440f877192af128c00ca2acbabf68bb3ee3 (diff) | |
download | aerc-aaf0a0c65673db4b94c0dc200d7394a192128da1.tar.gz |
lint: apply new formatting rules
Run `make fmt`.
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/messageview.go')
-rw-r--r-- | lib/messageview.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/messageview.go b/lib/messageview.go index a1797d53..e0e86ea1 100644 --- a/lib/messageview.go +++ b/lib/messageview.go @@ -62,10 +62,12 @@ type MessageStoreView struct { func NewMessageStoreView(messageInfo *models.MessageInfo, store *MessageStore, pgp crypto.Provider, decryptKeys openpgp.PromptFunction, - cb func(MessageView, error)) { - - msv := &MessageStoreView{messageInfo, store, - nil, nil, messageInfo.BodyStructure} + cb func(MessageView, error), +) { + msv := &MessageStoreView{ + messageInfo, store, + nil, nil, messageInfo.BodyStructure, + } if usePGP(messageInfo.BodyStructure) { store.FetchFull([]uint32{messageInfo.Uid}, func(fm *types.FullMessage) { @@ -117,7 +119,6 @@ func (msv *MessageStoreView) MessageDetails() *models.MessageDetails { } func (msv *MessageStoreView) FetchBodyPart(part []int, cb func(io.Reader)) { - if msv.message == nil { msv.messageStore.FetchBodyPart(msv.messageInfo.Uid, part, cb) return |