mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
enable ref_patterns lint
This commit is contained in:
parent
6bdaeab1af
commit
d144db8688
6 changed files with 10 additions and 9 deletions
|
|
@ -122,7 +122,7 @@ pub(crate) async fn register_route(
|
|||
};
|
||||
|
||||
if body.body.login_type == Some(LoginType::ApplicationService) {
|
||||
if let Some(ref info) = body.appservice_info {
|
||||
if let Some(info) = &body.appservice_info {
|
||||
if !info.is_user_match(&user_id) {
|
||||
return Err(Error::BadRequest(
|
||||
ErrorKind::Exclusive,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue