Skip to content

Commit 413a70e

Browse files
committed
[SP-3040] fix: remove unused code
1 parent 1554469 commit 413a70e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scanoss/file_filters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@
269269
'sqlite3',
270270
}
271271

272+
272273
class FileFilters(ScanossBase):
273274
"""
274275
Filter for determining which files to process during scanning, fingerprinting, etc.
@@ -552,7 +553,6 @@ def _should_skip_file(self, file_rel_path: str) -> bool: # noqa: PLR0911
552553
file_name = os.path.basename(file_rel_path)
553554

554555
DEFAULT_SKIPPED_FILES_LIST = DEFAULT_SKIPPED_FILES_HFH if self.is_folder_hashing_scan else DEFAULT_SKIPPED_FILES
555-
DEFAULT_SKIPPED_EXT_LIST = {} if self.is_folder_hashing_scan else DEFAULT_SKIPPED_EXT
556556

557557
if not self.hidden_files_folders and file_name.startswith('.'):
558558
self.print_debug(f'Skipping file: {file_rel_path} (hidden file)')
@@ -565,7 +565,7 @@ def _should_skip_file(self, file_rel_path: str) -> bool: # noqa: PLR0911
565565
self.print_debug(f'Skipping file: {file_rel_path} (matches default skip file)')
566566
return True
567567
# Look for file endings
568-
for ending in DEFAULT_SKIPPED_EXT_LIST:
568+
for ending in DEFAULT_SKIPPED_EXT:
569569
if file_name_lower.endswith(ending):
570570
self.print_debug(f'Skipping file: {file_rel_path} (matches default skip ending: {ending})')
571571
return True

0 commit comments

Comments
 (0)