Skip to content

Commit 317a2bb

Browse files
committed
CM-53944-Fixed comment
1 parent 7a47a0c commit 317a2bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cycode/cli/files_collector/file_excluder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ def apply_scan_config(self, scan_type: str, scan_config: 'models.ScanConfigurati
7070
self._scannable_extensions[scan_type] = tuple(scan_config.scannable_extensions)
7171

7272
def _is_file_prefix_supported(self, scan_type: str, file_path: str) -> bool:
73-
path = Path(file_path)
74-
file_name = path.name.lower()
7573
scannable_prefixes = self._scannable_prefixes.get(scan_type)
7674
if scannable_prefixes:
75+
path = Path(file_path)
76+
file_name = path.name.lower()
7777
return file_name.startswith(scannable_prefixes)
7878
return False
7979

0 commit comments

Comments
 (0)