mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 08:11:24 +01:00
enable ref_patterns lint
This commit is contained in:
parent
6bdaeab1af
commit
d144db8688
6 changed files with 10 additions and 9 deletions
|
|
@ -104,8 +104,8 @@ pub(crate) async fn create_room_route(
|
|||
}
|
||||
})?;
|
||||
|
||||
if let Some(ref alias) = alias {
|
||||
if let Some(ref info) = body.appservice_info {
|
||||
if let Some(alias) = &alias {
|
||||
if let Some(info) = &body.appservice_info {
|
||||
if !info.aliases.is_match(alias.as_str()) {
|
||||
return Err(Error::BadRequest(
|
||||
ErrorKind::Exclusive,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue