Skip to content

Commit 25b22e8

Browse files
committed
Fix already-installed check
1 parent cfcd6b7 commit 25b22e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

solc_select/services/artifact_manager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ def download_and_install(self, version: SolcVersion, silent: bool = False) -> bo
176176
InstallationError: If installation fails
177177
ChecksumMismatchError: If checksum verification fails
178178
"""
179-
if self.is_installed(version) and not silent:
180-
print(f"Version '{version}' is already installed, skipping...")
179+
if self.is_installed(version):
180+
if not silent:
181+
print(f"Version '{version}' is already installed, skipping...")
181182
return True
182183

183184
if not silent:

0 commit comments

Comments
 (0)