mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
Apply suggestion to internal/store/event_loop.go
This commit is contained in:
committed by
Jakub Cuth
parent
91ec7edc06
commit
0998c67f20
@ -406,7 +406,7 @@ func (loop *eventLoop) processMessages(eventLog *logrus.Entry, messages []*pmapi
|
|||||||
|
|
||||||
if message.Created == nil {
|
if message.Created == nil {
|
||||||
msgLog.Error("Got EventCreate with nil message")
|
msgLog.Error("Got EventCreate with nil message")
|
||||||
break
|
return errors.Wrap(err, "no message to put into DB")
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = loop.store.createOrUpdateMessageEvent(message.Created); err != nil {
|
if err = loop.store.createOrUpdateMessageEvent(message.Created); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user