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 72b5944
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ jobs:
- name: Check blueprint metadata
id: metadata
run: |
pythontools/validate_metadata.py -v blueprints
python tools/validate_metadata.py -v blueprints
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 72b5944

Please sign in to comment.