Reduce indentation levels
@@ -141,8 +141,10 @@ class AbiChecker(object):
self.log.info(output.decode("utf-8"))
if process.returncode != 0:
raise Exception("git submodule update failed, aborting")
- if (os.path.exists(os.path.join(git_worktree_path, "crypto"))
+ if not (os.path.exists(os.path.join(git_worktree_path, "crypto"))
and crypto_rev):
+ return
+
if crypto_repo:
shutil.rmtree(os.path.join(git_worktree_path, "crypto"))
clone_process = subprocess.Popen(
