diff --git a/robot-repo-automaton/src/confidence.rs b/robot-repo-automaton/src/confidence.rs index 842871b3..db704d43 100644 --- a/robot-repo-automaton/src/confidence.rs +++ b/robot-repo-automaton/src/confidence.rs @@ -349,11 +349,7 @@ fn is_protected_file(target: &str) -> bool { "spec/", "verification/", ]; - if protected_dirs.iter().any(|dir| target.contains(dir)) { - return true; - } - - false + protected_dirs.iter().any(|dir| target.contains(dir)) } /// Check if a file is a standard repository file (high confidence to create)