Simplify return

This commit is contained in:
Julio Castillo
2023-05-05 17:02:26 +02:00
parent 873c45d6c6
commit 72b5944fb3
2 changed files with 2 additions and 5 deletions

View File

@@ -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

View File

@@ -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__':