Skip to content

Commit

Permalink
replacements fix for grammar checker (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
JediFaust authored Sep 1, 2023
1 parent c7a39de commit f946412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/grammar_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def grammar_check(content):
replacements = ' | '.join([ '`' + i['value'] + '`' for i in item['replacements'] ])
issue = item['shortMessage'] if item['shortMessage'] != '' else item['message']
fix = 'Fix: ' + word
if replacements == '':
if replacements.strip() != '':
fix += ' to ' + replacements

matches.append(
Expand Down

0 comments on commit f946412

Please sign in to comment.