♻️ Refactored linter warnings.

This commit is contained in:
Robert Honz
2024-01-13 12:04:35 +01:00
parent 14483a1629
commit dd8833add8
3 changed files with 13 additions and 15 deletions
+1 -5
View File
@@ -137,11 +137,7 @@ class Download:
# Compute if and how downloads need to be skipped.
if self.skip_existing:
if self.skip_existing == SkipExisting.ExtensionIgnore:
extension_ignore = True
else:
extension_ignore = False
extension_ignore = self.skip_existing == SkipExisting.ExtensionIgnore
# TODO: Check if extension is already in `path_file` or not.
download_skip = check_file_exists(path_file, extension_ignore=extension_ignore)
else: