You've already forked authentication-service
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:
@@ -89,9 +89,8 @@ impl<F: Send> UserAuthorization<F> {
|
||||
repo: &mut impl RepositoryAccess<Error = E>,
|
||||
clock: &impl Clock,
|
||||
) -> Result<(Session, F), AuthorizationVerificationError<E>> {
|
||||
let form = match self.form {
|
||||
Some(f) => f,
|
||||
None => return Err(AuthorizationVerificationError::MissingForm),
|
||||
let Some(form) = self.form else {
|
||||
return Err(AuthorizationVerificationError::MissingForm);
|
||||
};
|
||||
|
||||
let (token, session) = self.access_token.fetch(repo).await?;
|
||||
|
||||
Reference in New Issue
Block a user