mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-02-12 14:04: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)
|
commit, err := r.processRoomEvent(ctx, updater, inputRoomEvent)
|
||||||
if commit {
|
if commit {
|
||||||
if cerr := updater.Commit(); err != nil {
|
if cerr := updater.Commit(); cerr != nil {
|
||||||
return true, fmt.Errorf("updater.Commit: %w", cerr)
|
return true, fmt.Errorf("updater.Commit: %w", cerr)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue