Skip to content

Commit

Permalink
security check removed from thread
Browse files Browse the repository at this point in the history
  • Loading branch information
marirs committed Mar 26, 2024
1 parent 0dffa28 commit 6160b5b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,10 @@ impl FileCapabilities {
let rules_thread_handle = spawn(move || rules::RuleSet::new(&r));
let rules = rules_thread_handle.join().unwrap()?;

// Fetch security checks on a separate thread
// Fetch security checks
let mut security_opts = security_checks_opts.unwrap_or_default();
security_opts.input_file = PathBuf::from(&f);
let security_checks_thread_handle =
spawn(move || security::get_security_checks(&f, &security_opts));
let security_checks = security_checks_thread_handle.join().unwrap()?;
let security_checks = security::get_security_checks(&f, &security_opts)?;

let mut file_capabilities;
#[cfg(not(feature = "properties"))]
Expand Down

0 comments on commit 6160b5b

Please sign in to comment.