Reduce indentation levels

This commit is contained in:
Darryl Green 2019-03-05 15:23:25 +00:00
parent 4cde8a0513
commit e29ce70ca5

View File

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