Skip to content

Commit 691c055

Browse files
committed
Fix clippy error.
1 parent c5e0f16 commit 691c055

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

crates/handlers/src/upstream_oauth2/authorize.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,9 @@ pub(crate) async fn get(
9494

9595
// Forward the raw login hint upstream for the provider to handle however it
9696
// sees fit
97-
if let Some(post_auth_action) = &query.post_auth_action {
98-
if let PostAuthAction::ContinueAuthorizationGrant { id } = post_auth_action {
99-
if let Some(grant) = repo.oauth2_authorization_grant().lookup(*id).await? {
100-
data.login_hint = grant.login_hint;
101-
}
97+
if let Some(PostAuthAction::ContinueAuthorizationGrant { id }) = &query.post_auth_action {
98+
if let Some(grant) = repo.oauth2_authorization_grant().lookup(*id).await? {
99+
data.login_hint = grant.login_hint;
102100
}
103101
}
104102

0 commit comments

Comments
 (0)