Skip to content

Commit

Permalink
Simplify return
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocc committed May 5, 2023
1 parent 873c45d commit a02701b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/validate_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ def main(dirs: list[str], verbose: bool) -> int:
for path, message in errors.items():
print(f"{path}: {message}")

if errors:
return 1

return 0
return 0 if not errors else 1


if __name__ == '__main__':
Expand Down

0 comments on commit a02701b

Please sign in to comment.