Skip to content

Commit

Permalink
refactor(auth): use cloned instead of map
Browse files Browse the repository at this point in the history
  • Loading branch information
ymgyt committed Mar 21, 2024
1 parent f82664e commit ae03934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/synd_auth/src/jwt/google.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl JwtService {
.read()
.unwrap()
.get(kid)
.map(Arc::clone)
.cloned()
.ok_or(JwtError::DecodingKeyPemNotFound)
}

Expand Down

0 comments on commit ae03934

Please sign in to comment.