Skip to content

Commit

Permalink
Remove superfluous check on success and make exit code unique
Browse files Browse the repository at this point in the history
  • Loading branch information
twiggler committed Oct 17, 2024
1 parent 4aff150 commit ec8e239
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acquire/tools/decrypter.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,12 +490,12 @@ def main() -> None:
# If no successful results, return 1
if not any(successes):
exit_code = 1
# Else, if some results were successful return 2
# Else, if some results but not all were successful return 2
elif not all(successes):
exit_code = 2
# Else, if all were successful but there were still tasks to handle, return 2
elif success and tasks:
exit_code = 2
# Else, if all were successful but there were still tasks to handle, return 3
elif tasks:
exit_code = 3

Check warning on line 498 in acquire/tools/decrypter.py

View check run for this annotation

Codecov / codecov/patch

acquire/tools/decrypter.py#L497-L498

Added lines #L497 - L498 were not covered by tests
exit(exit_code)


Expand Down

0 comments on commit ec8e239

Please sign in to comment.