0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-11-07 08:29:00 +01:00

return err when err != nil (#545)

This commit is contained in:
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

View file

@ -271,7 +271,7 @@ func (r *RoomserverQueryAPI) QueryMembershipsForRoom(
membershipEventNID, stillInRoom, err := r.DB.GetMembership(ctx, roomNID, request.Sender) membershipEventNID, stillInRoom, err := r.DB.GetMembership(ctx, roomNID, request.Sender)
if err != nil { if err != nil {
return nil return err
} }
if membershipEventNID == 0 { if membershipEventNID == 0 {