Skip to content

Commit

Permalink
Do not replace the same word multiple times in spell checker comment …
Browse files Browse the repository at this point in the history
…message
  • Loading branch information
Qrox committed Apr 9, 2024
1 parent 7fff673 commit 57a95d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/spell_check_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
diff = json.load(open(options.pot_diff, "r"))
errors = []
for message in diff["added"]:
typos = spell_check(message)
typos = set(spell_check(message))
if len(typos) == 0:
continue
message = message.replace('\n', "\\n")
Expand Down

0 comments on commit 57a95d0

Please sign in to comment.