forked from gorb/backend
refactor: cargo clippy
This commit is contained in:
parent
771cf72889
commit
c21762ac7e
5 changed files with 6 additions and 6 deletions
|
@ -12,7 +12,7 @@ use super::Response;
|
|||
pub async fn res(req: HttpRequest, data: web::Data<Data>) -> Result<HttpResponse, Error> {
|
||||
let recv_refresh_token_cookie = req.cookie("refresh_token");
|
||||
|
||||
if let None = recv_refresh_token_cookie {
|
||||
if recv_refresh_token_cookie.is_none() {
|
||||
return Ok(HttpResponse::Unauthorized().finish())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue