From d4b24462d19eb0a994f7b8af319d720e865a695c Mon Sep 17 00:00:00 2001 From: Anant Prakash Date: Wed, 11 Jul 2018 17:46:38 +0530 Subject: [PATCH] return err when err != nil (#545) --- src/github.com/matrix-org/dendrite/roomserver/query/query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/roomserver/query/query.go b/src/github.com/matrix-org/dendrite/roomserver/query/query.go index 3dc9fa24..836edcef 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/query/query.go +++ b/src/github.com/matrix-org/dendrite/roomserver/query/query.go @@ -271,7 +271,7 @@ func (r *RoomserverQueryAPI) QueryMembershipsForRoom( membershipEventNID, stillInRoom, err := r.DB.GetMembership(ctx, roomNID, request.Sender) if err != nil { - return nil + return err } if membershipEventNID == 0 {