Skip to content

Commit

Permalink
🐛 Fix no. new warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
je-cook committed Nov 29, 2024
1 parent a8d0ebd commit d1ddcf7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/format_warning_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ def format_warning_report(sys_args: list[str]) -> int:
)
if new:
warning_list = format_warnings_list(new)
report.extend(
make_collapsable(warning_list, f"New warnings ({len(warnings)})")
)
report.extend(make_collapsable(warning_list, f"New warnings ({len(new)})"))
exit_code = len(new)
else:
plural = "" if len(warnings) == 1 else "s"
Expand Down

0 comments on commit d1ddcf7

Please sign in to comment.