Fix clippy error.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user