Skip to content

Commit

Permalink
fix: clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kimtore committed Nov 11, 2024
1 parent 39a5217 commit 6d4f3dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,17 +263,17 @@ impl HandlerState {
// FIXME
pub fn identity_provider_from_issuer(&self, iss: &str) -> Option<IdentityProvider> {
if let Some(cfg) = &self.cfg.maskinporten {
if iss == &cfg.issuer {
if iss == cfg.issuer {
return Some(IdentityProvider::Maskinporten);
}
}
if let Some(cfg) = &self.cfg.azure_ad {
if iss == &cfg.issuer {
if iss == cfg.issuer {
return Some(IdentityProvider::AzureAD);
}
}
if let Some(cfg) = &self.cfg.token_x {
if iss == &cfg.issuer {
if iss == cfg.issuer {
return Some(IdentityProvider::TokenX);
}
}
Expand Down

0 comments on commit 6d4f3dc

Please sign in to comment.