Skip to content

Commit

Permalink
changed order of checks so that when no file shall be created, no err…
Browse files Browse the repository at this point in the history
…or message is displayed

Signed-off-by: Anton Utz <[email protected]>
  • Loading branch information
ant-u committed Apr 8, 2024
1 parent 630ddb5 commit 4e250c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ros_license_toolkit/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ def main(args: Optional[Sequence[str]] = None) -> int:
results_per_package.update(
process_one_pkg(rll_print, package))

if max(results_per_package.values()) != Status.FAILURE:
if parsed_args.generate_copyright_file:

if parsed_args.generate_copyright_file:
if max(results_per_package.values()) != Status.FAILURE:
generate_copyright_file(packages, rll_print)
else:
rll_print(red(
Expand Down

0 comments on commit 4e250c4

Please sign in to comment.