From 3485c1120b2b94f76cd86e5b486be28119d131b9 Mon Sep 17 00:00:00 2001 From: yuuhikaze Date: Mon, 9 Dec 2024 09:59:05 -0500 Subject: [PATCH] fix: formats code properly --- crates/ignore/src/overrides.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ignore/src/overrides.rs b/crates/ignore/src/overrides.rs index 790006afe..a44b56f93 100644 --- a/crates/ignore/src/overrides.rs +++ b/crates/ignore/src/overrides.rs @@ -110,7 +110,8 @@ impl Override { self.0.matched(path, is_dir) }; if mat.is_none() - && (self.num_whitelists() > 0 && INVERTED_MATCHING.load(Ordering::Relaxed)) + && (self.num_whitelists() > 0 + && INVERTED_MATCHING.load(Ordering::Relaxed)) && !is_dir { return Match::Ignore(Glob::unmatched());