From 215445858910f8c63632e90e348c9d5a9a1f6b31 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 {