return err when err != nil (#545)

main
Anant Prakash 2018-07-11 17:46:38 +05:30 committed by GitHub
parent 730c4f74db
commit d4b24462d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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 {