Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartolomeu-07 committed Oct 24, 2024
1 parent 7d0631b commit 9f7ab0b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ def format_single_linter_file(file_path: str, errors: list) -> dict:
for error in errors
],
"path": file_path,
"status": "failed"
if len(errors) > 0
else {
"path": file_path,
"status": "passed"
}
"status": "failed" if len(errors) > 0 else "passed"
}


Expand Down

0 comments on commit 9f7ab0b

Please sign in to comment.