Skip to content

Commit

Permalink
remove double negative
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Oct 24, 2023
1 parent d91f976 commit 9e04a6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rust/cryptography-x509-validation/src/policy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,10 @@ impl<'a, B: CryptoOps> Policy<'a, B> {
.map(|p| p.oid.clone())
.collect::<HashSet<_>>();

if !critical_extensions
if critical_extensions
.difference(&checked_extensions)
.next()
.is_none()
.is_some()
{
// TODO: Render the OIDs here.
return Err("certificate contains unaccounted-for critical extensions".into());
Expand Down

0 comments on commit 9e04a6a

Please sign in to comment.