mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 15:03:09 -06:00
lint pass
This commit is contained in:
parent
5046ebcdf4
commit
2c9ccd2025
|
|
@ -201,8 +201,8 @@ func (r *Joiner) performJoinRoomByID(
|
||||||
if err == nil && info != nil {
|
if err == nil && info != nil {
|
||||||
switch info.RoomVersion {
|
switch info.RoomVersion {
|
||||||
case gomatrixserverlib.RoomVersionPseudoIDs:
|
case gomatrixserverlib.RoomVersionPseudoIDs:
|
||||||
senderIDPtr, err := r.Queryer.QuerySenderIDForUser(ctx, *roomID, *userID)
|
senderIDPtr, queryErr := r.Queryer.QuerySenderIDForUser(ctx, *roomID, *userID)
|
||||||
if err == nil {
|
if queryErr == nil {
|
||||||
checkInvitePending = true
|
checkInvitePending = true
|
||||||
}
|
}
|
||||||
if senderIDPtr == nil {
|
if senderIDPtr == nil {
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,7 @@ func (r *Leaver) PerformLeave(
|
||||||
return nil, fmt.Errorf("room ID %q is invalid", req.RoomID)
|
return nil, fmt.Errorf("room ID %q is invalid", req.RoomID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// nolint:gocyclo
|
||||||
func (r *Leaver) performLeaveRoomByID(
|
func (r *Leaver) performLeaveRoomByID(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
req *api.PerformLeaveRequest,
|
req *api.PerformLeaveRequest,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue