Skip to content

Commit 9c05e56

Browse files
m-brophymrizzi
authored andcommitted
prevent all cve files being ignored without prefix input
Signed-off-by: m-brophy <[email protected]>
1 parent d310576 commit 9c05e56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

v11y/walker/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ impl Run {
107107
if !name.starts_with("CVE-") {
108108
continue;
109109
}
110-
111-
let mut name_matches_prefix = false;
110+
//this is done to stop this section from ignoring files when there's no prefix
111+
let mut name_matches_prefix = self.require_prefix.is_empty();
112112
for prefix in &self.require_prefix {
113113
if name.starts_with(prefix) {
114114
name_matches_prefix = true;

0 commit comments

Comments
 (0)