Skip to content

Commit fba41bb

Browse files
committed
CM-53944-Fixed comment
1 parent f9f0e95 commit fba41bb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cycode/cli/files_collector/file_excluder.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,8 @@ def _is_relevant_file_to_scan_common(self, scan_type: str, filename: str) -> boo
104104
)
105105
return False
106106

107-
if self._is_file_prefix_supported(scan_type, filename):
108-
return True
109-
110-
if not self._is_file_extension_supported(scan_type, filename):
107+
if (not self._is_file_extension_supported(scan_type, filename)
108+
and not self._is_file_prefix_supported(scan_type, filename)):
111109
logger.debug(
112110
'The document is irrelevant because its extension is not supported, %s',
113111
{'scan_type': scan_type, 'filename': filename},

0 commit comments

Comments
 (0)