Apply suggestion to internal/store/mailbox_message.go

This commit is contained in:
Jakub Cuth
2020-06-05 09:58:29 +00:00
parent 49cc49b1e2
commit f82ab3189b

View File

@ -81,7 +81,7 @@ func (storeMailbox *Mailbox) LabelMessages(apiIDs []string) error {
"mailbox": storeMailbox.Name, "mailbox": storeMailbox.Name,
}).Trace("Labeling messages") }).Trace("Labeling messages")
if storeMailbox.labelID == pmapi.AllMailLabel { if storeMailbox.labelID == pmapi.AllMailLabel {
return errAllMailOpNotAllowed return ErrAllMailOpNotAllowed
} }
defer storeMailbox.pollNow() defer storeMailbox.pollNow()
return storeMailbox.client().LabelMessages(apiIDs, storeMailbox.labelID) return storeMailbox.client().LabelMessages(apiIDs, storeMailbox.labelID)