mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-02-11 21:44:28 -06:00
Fix incorrect error check
This commit is contained in:
parent
f58ee67a7a
commit
f49f4e55e0
|
@ -157,7 +157,7 @@ func (r *Inputer) processRoomEventUsingUpdater(
|
|||
}
|
||||
commit, err := r.processRoomEvent(ctx, updater, inputRoomEvent)
|
||||
if commit {
|
||||
if cerr := updater.Commit(); err != nil {
|
||||
if cerr := updater.Commit(); cerr != nil {
|
||||
return true, fmt.Errorf("updater.Commit: %w", cerr)
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue