mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-26 13:41:33 +00:00
return err when err != nil (#545)
This commit is contained in:
parent
730c4f74db
commit
d4b24462d1
@ -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 New Issue
Block a user