Skip to content

Commit 4984160

Browse files
committed
Fix function parameter "result" overwritten by a local variable
1 parent fc270b1 commit 4984160

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/msgcheck/msgcheck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ def msgcheck_display_result(args: argparse.Namespace, result: list[tuple[str, li
236236
if errors == 0:
237237
print(f"{filename}: OK")
238238
else:
239-
result = "almost good!" if errors <= 10 else "uh oh... try again!" # noqa: PLR2004
240-
print(f"{filename}: {errors} errors ({result})")
239+
str_result = "almost good!" if errors <= 10 else "uh oh... try again!" # noqa: PLR2004
240+
print(f"{filename}: {errors} errors ({str_result})")
241241

242242
# display total (if many files processed)
243243
if len(args.file) > 1:

0 commit comments

Comments
 (0)