Skip to content

Commit b78b66a

Browse files
committed
CM-53944-Fixed issue when docker file is ignored because it has no extension
1 parent 4f7f752 commit b78b66a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cycode/cli/files_collector/file_excluder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def _is_relevant_file_to_scan_common(self, scan_type: str, filename: str) -> boo
101101
return False
102102

103103
# We don't want to check for IAC scans, the extension is handled internally
104-
if not scan_type == consts.IAC_SCAN_TYPE and not self._is_file_extension_supported(scan_type, filename):
104+
if scan_type != consts.IAC_SCAN_TYPE and not self._is_file_extension_supported(scan_type, filename):
105105
logger.debug(
106106
'The document is irrelevant because its extension is not supported, %s',
107107
{'scan_type': scan_type, 'filename': filename},

0 commit comments

Comments
 (0)