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:
parent
730c4f74db
commit
d4b24462d1
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue