Skip to content

Commit

Permalink
🚨 Fix linter warning (RustScan#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
lepirlouit authored Jul 10, 2023
1 parent d7c07c4 commit 2ab7191
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/scanner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ impl Scanner {
Err(e) => {
let mut error_string = e.to_string();

if error_string.to_lowercase().contains("too many open files") {
panic!("Too many open files. Please reduce batch size. The default is 5000. Try -b 2500.");
}
assert!(!error_string.to_lowercase().contains("too many open files"), "Too many open files. Please reduce batch size. The default is 5000. Try -b 2500.");

if nr_try == tries {
error_string.push(' ');
Expand Down

0 comments on commit 2ab7191

Please sign in to comment.