We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 721044b commit ccd4b82Copy full SHA for ccd4b82
src/ir/item.rs
@@ -641,11 +641,13 @@ impl Item {
641
return true;
642
}
643
644
- if let Some(location) = &self.location {
645
- let (file, _, _, _) = location.location();
646
- if let Some(filename) = file.name() {
647
- if ctx.options().blocklisted_files.matches(&filename) {
648
- return true;
+ if !ctx.options().blocklisted_files.is_empty() {
+ if let Some(location) = &self.location {
+ let (file, _, _, _) = location.location();
+ if let Some(filename) = file.name() {
+ if ctx.options().blocklisted_files.matches(&filename) {
649
+ return true;
650
+ }
651
652
653
0 commit comments