Skip to content

Commit ad977a9

Browse files
committed
refactor: small tidy up refactor
Signed-off-by: James McCorrie <[email protected]>
1 parent 841534b commit ad977a9

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/dvsim/cli.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -729,19 +729,18 @@ def main() -> None:
729729
flow.deploy_objects()
730730
sys.exit(0)
731731

732-
# Deploy the builds and runs
733-
if args.items:
734-
# Create deploy objects.
735-
flow.create_deploy_objects()
736-
results = flow.deploy_objects()
737-
738-
# Generate results.
739-
flow.gen_results(results)
740-
741-
else:
732+
if not args.items:
742733
log.error("Nothing to run!")
743734
sys.exit(1)
744735

736+
# Deploy the builds and runs
737+
# Create deploy objects.
738+
flow.create_deploy_objects()
739+
results = flow.deploy_objects()
740+
741+
# Generate results.
742+
flow.gen_results(results)
743+
745744
# Exit with non-zero status if there were errors or failures.
746745
if flow.has_errors():
747746
log.error("Errors were encountered in this run.")

0 commit comments

Comments
 (0)