From 4c807e082fb24b7f976a4013bd46759e7ab0ca38 Mon Sep 17 00:00:00 2001 From: Zero King Date: Tue, 15 May 2018 09:14:26 +0000 Subject: [PATCH] Fix typo (#441) Signed-off-by: Zero King --- src/github.com/matrix-org/dendrite/roomserver/input/events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/roomserver/input/events.go b/src/github.com/matrix-org/dendrite/roomserver/input/events.go index 02cd45066..b498cc058 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/input/events.go +++ b/src/github.com/matrix-org/dendrite/roomserver/input/events.go @@ -114,7 +114,7 @@ func processRoomEvent( } if stateAtEvent.BeforeStateSnapshotNID, err = db.AddState(ctx, roomNID, nil, entries); err != nil { - return nil + return err } } else { // We haven't been told what the state at the event is so we need to calculate it from the prev_events