Reduce indentation levels

This commit is contained in:
Darryl Green 2019-03-05 15:23:25 +00:00
parent 7c0e052276
commit 0478a32162

View file

@ -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(