Fix clippy error.

This commit is contained in:
Doug
2025-05-06 15:34:37 +01:00
parent be44da9c4b
commit 830b1690cc

View File

@@ -94,11 +94,9 @@ pub(crate) async fn get(
// Forward the raw login hint upstream for the provider to handle however it
// sees fit
if let Some(post_auth_action) = &query.post_auth_action {
if let PostAuthAction::ContinueAuthorizationGrant { id } = post_auth_action {
if let Some(grant) = repo.oauth2_authorization_grant().lookup(*id).await? {
data.login_hint = grant.login_hint;
}
if let Some(PostAuthAction::ContinueAuthorizationGrant { id }) = &query.post_auth_action {
if let Some(grant) = repo.oauth2_authorization_grant().lookup(*id).await? {
data.login_hint = grant.login_hint;
}
}