Skip to content

Commit

Permalink
swap unwrap with ?
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktaubeneck committed Dec 12, 2024
1 parent 4f112ad commit df57252
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ipa-core/src/query/runner/hybrid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,8 @@ where
)
.await?;

// this should use ? but until this returns a result,
//we want to capture the panic for the test
let mut unique_encrypted_hybrid_reports = UniqueTagValidator::new(resharded_tags.len());
unique_encrypted_hybrid_reports
.check_duplicates(&resharded_tags)
.unwrap();
unique_encrypted_hybrid_reports.check_duplicates(&resharded_tags)?;

let indistinguishable_reports: Vec<IndistinguishableHybridReport<BA8, BA3>> =
decrypted_reports.into_iter().map(Into::into).collect();
Expand Down

0 comments on commit df57252

Please sign in to comment.