Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
maximprysyazhnikov committed Oct 17, 2024
1 parent 29d6a6a commit 8c3a66f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ def format_linter_error(error: dict) -> dict:


def format_single_linter_file(file_path: str, errors: list) -> dict:
formatted_errors = [format_linter_error(error) for error in errors]

return {
"errors": formatted_errors,
"errors": [format_linter_error(error) for error in errors],
"path": file_path,
"status": "failed" if errors else "passed"
}
Expand Down

0 comments on commit 8c3a66f

Please sign in to comment.