refactor: simplify download & extract logic
This commit is contained in:
+4
-4
@@ -147,11 +147,11 @@ def check_installed_extension(ext: InstallableExtension) -> bool:
|
|||||||
|
|
||||||
if ext.has_installed_version:
|
if ext.has_installed_version:
|
||||||
return True
|
return True
|
||||||
if ext.zip_path in zip_files:
|
|
||||||
ext.extract_archive()
|
if ext.zip_path not in zip_files:
|
||||||
else:
|
|
||||||
ext.download_archive()
|
ext.download_archive()
|
||||||
ext.extract_archive()
|
ext.extract_archive()
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user