Skip to content

Commit

Permalink
chore: remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
SaadBazaz committed Oct 3, 2024
1 parent 8adaa65 commit b5c4546
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/biome_js_analyze/src/lint/nursery/no_secrets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,6 @@ fn detect_secret(data: &str, entropy_threshold: &u16) -> Option<&'static str> {
let tokens: Vec<&str> = split_into_tokens(data);

for token in tokens {
println!("Token: {}, length: {}", token, token.len());

if token.len() >= MIN_PATTERN_LEN {

if is_known_safe_pattern(token) {
Expand All @@ -356,7 +354,6 @@ fn detect_secret(data: &str, entropy_threshold: &u16) -> Option<&'static str> {

let entropy =
calculate_entropy_with_case_and_classes(token, *entropy_threshold as f64, 15.0);
println!("Token: {}, entropy: {}", token, entropy);
if (entropy as u16) > *entropy_threshold {
return Some("Detected high entropy string");
}
Expand Down

0 comments on commit b5c4546

Please sign in to comment.