Skip to content

Commit

Permalink
removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
taraskhom committed Nov 26, 2024
1 parent 941ae95 commit e44af05
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ def format_linter_error(error: dict) -> dict:
def format_single_linter_file(file_path: str, errors: list) -> dict:

return {
"errors": [format_linter_error(element) for element in errors
if element != {}],
"errors": [format_linter_error(element) for element in errors],
"path": file_path,
"status": "passed" if len([format_linter_error(element)
for element in errors
if element != {}]) == 0 else "failed"
"status": "failed"
if [format_linter_error(element) for element in errors]
else "passed"
}


Expand Down

0 comments on commit e44af05

Please sign in to comment.