mirror of
https://github.com/matrix-org/dendrite
synced 2024-09-04 10:15:26 +02: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)
|
||||
if err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
if membershipEventNID == 0 {
|
||||
|
|
Loading…
Reference in a new issue