mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-15 01:53:09 -06:00
Fix linter error
This commit is contained in:
parent
e678912a80
commit
8b5a211431
|
|
@ -158,10 +158,10 @@ func (r *Inviter) PerformInvite(
|
||||||
StateKey: "",
|
StateKey: "",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if is, err := r.GenerateInviteStrippedState(ctx, *validRoomID, stateWanted, req.Event); err == nil {
|
if is, generateErr := r.GenerateInviteStrippedState(ctx, *validRoomID, stateWanted, req.Event); generateErr == nil {
|
||||||
inviteState = is
|
inviteState = is
|
||||||
} else {
|
} else {
|
||||||
util.GetLogger(ctx).WithError(err).Error("failed querying known room")
|
util.GetLogger(ctx).WithError(generateErr).Error("failed querying known room")
|
||||||
return nil, spec.InternalServerError{}
|
return nil, spec.InternalServerError{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -241,6 +241,7 @@ func (r *Inviter) PerformInvite(
|
||||||
)
|
)
|
||||||
return nil, api.ErrNotAllowed{Err: err}
|
return nil, api.ErrNotAllowed{Err: err}
|
||||||
}
|
}
|
||||||
|
// TODO: Move everything above here to gmsl (including fed call?)
|
||||||
|
|
||||||
// If the invite originated from us and the target isn't local then we
|
// If the invite originated from us and the target isn't local then we
|
||||||
// should try and send the invite over federation first. It might be
|
// should try and send the invite over federation first. It might be
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue