mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-01-19 05:33:47 +01:00
refactor: simplify download & extract logic
This commit is contained in:
parent
9cf587a64a
commit
ea31e148ae
@ -147,11 +147,11 @@ def check_installed_extension(ext: InstallableExtension) -> bool:
|
||||
|
||||
if ext.has_installed_version:
|
||||
return True
|
||||
if ext.zip_path in zip_files:
|
||||
ext.extract_archive()
|
||||
else:
|
||||
|
||||
if ext.zip_path not in zip_files:
|
||||
ext.download_archive()
|
||||
ext.extract_archive()
|
||||
ext.extract_archive()
|
||||
|
||||
return False
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user