Skip to content

Commit a99b957

Browse files
committed
"Simplify" boolean expression
if you say so, clippy...
1 parent ca0fb8a commit a99b957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/user/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub async fn authorize(
9191
// Make sure that the state we just got matches the session state that we
9292
// should have issued earlier.
9393
let session_state = session.remove("github_oauth_state").map(CsrfToken::new);
94-
if !session_state.is_some_and(|state| query.state.secret() == state.secret()) {
94+
if session_state.is_none_or(|state| query.state.secret() != state.secret()) {
9595
return Err(bad_request("invalid state parameter"));
9696
}
9797

0 commit comments

Comments
 (0)