1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Convert many match/if expressions to let-else

This commit is contained in:
Quentin Gliech
2023-02-01 10:15:35 +01:00
parent d9649975b9
commit 792d3c793b
22 changed files with 51 additions and 107 deletions

View File

@@ -154,9 +154,7 @@ pub(crate) async fn post(
.verify(&http_client_factory, &encrypter, method, &client)
.await?;
let form = if let Some(form) = client_authorization.form {
form
} else {
let Some(form) = client_authorization.form else {
return Err(RouteError::BadRequest);
};