From 68aa8628e11be7a6414225ffdbbe03d7b7773e7a Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 18 Dec 2023 14:08:23 +0100 Subject: [PATCH] Solved bvug --- scan.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scan.py b/scan.py index 20f09a3..6d873f4 100644 --- a/scan.py +++ b/scan.py @@ -105,7 +105,9 @@ class DirectoryHandler: if any(ignore_str in file_path for ignore_str in ignore_file_strings): return False - return DirectoryHandler.path_or_content_contains(file_path, path_contains, content_contains) + if path_contains or content_contains: + return DirectoryHandler.path_or_content_contains(file_path, path_contains, content_contains) + return True @staticmethod def print_file_content(file_path, no_comments, compress):