diff --git a/scripts/format_warning_report.py b/scripts/format_warning_report.py index cba1dcba9c..888d0888c3 100755 --- a/scripts/format_warning_report.py +++ b/scripts/format_warning_report.py @@ -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"