Skip to content

Commit d6a87ab

Browse files
ChsudeeptaChsudeepta
authored andcommitted
Fixed linter issues
1 parent ba5c669 commit d6a87ab

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

installation_and_upgrade/ibex_install_utils/tasks/backup_tasks.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,8 @@ def backup_checker(self) -> None:
116116
#The backup might be in the zip files instead of folders
117117
backup_zip_file = os.path.join(path_to_backup + ".zip")
118118
if os.path.exists(backup_zip_file):
119-
#Extract the file name without extension.
120-
backup_file_name = os.path.basename(path_to_backup)
121119
with zipfile.ZipFile(backup_zip_file, 'r') as backup_ref:
122-
if not file_to_check in backup_ref.namelist():
120+
if file_to_check not in backup_ref.namelist():
123121
backup_zip_exists = False
124122
else:
125123
backup_zip_exists = False

0 commit comments

Comments
 (0)