Skip to content

Commit

Permalink
Change return value from false to true when a virus is detected.
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmic-zip committed Oct 4, 2023
1 parent 859712a commit 2f7fa19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maid_runner/src/modules/maid_av/maid_av.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ pub fn search_malware_pattern(pattern: &str, debug: bool) -> bool {
for line in result {
println!("🚧 {}", line);
}
true
return true
} else {
println!("⚪ [WARNING] :: Pattern not found in any line.");
false
return true
}
}
Err(err) => {
eprintln!("🔴 [ERROR] :: {}", err);
false
return false
}
}
}
Expand Down

0 comments on commit 2f7fa19

Please sign in to comment.