Cargo clippy

This commit is contained in:
Pierre HUBERT 2022-04-15 20:18:36 +02:00
parent acabf438ed
commit 03a4bbb580

View File

@ -309,7 +309,7 @@ pub async fn token(req: HttpRequest,
}
}
if let Some(_) = session.access_token {
if session.access_token.is_some() {
return Ok(error_response(&query, "invalid_request", "Authorization code already used!"));
}