Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
okdzeryn committed Oct 1, 2024
1 parent f32b80a commit 259e281
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ def format_single_linter_file(file_path: str, errors: list) -> dict:


def format_linter_report(linter_report: dict) -> list:
return [{"path": path,
"errors": [format_linter_error(error) for error in errors],
"status": "failed" if errors else "passed"
}
return [format_single_linter_file(path, errors)
for path, errors in linter_report.items()]
pass

0 comments on commit 259e281

Please sign in to comment.