return err when err != nil (#545)

This commit is contained in:
Anant Prakash 2018-07-11 17:46:38 +05:30 committed by Andrew Morgan
parent a2a492fdb5
commit 2154458589

View file

@ -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 {