Skip to content

Commit

Permalink
Switch to any() to summarize results (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefmolin authored Jun 28, 2024
1 parent dd17603 commit a425a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exif_stripper/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def main(argv: Sequence[str] | None = None) -> int:
args = parser.parse_args(argv)

results = [process_image(filename) for filename in args.filenames]
return min(1, sum(results))
return int(any(results))


if __name__ == '__main__':
Expand Down

0 comments on commit a425a49

Please sign in to comment.