Skip to content

Commit fd10ef9

Browse files
authored
Merge pull request #34 from jcfr/tweak-suffix-handling
BUG: Remove unused test when setting suffixes
2 parents 673c8cc + 9bbf1e0 commit fd10ef9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

codespell.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,7 @@ def main():
388388

389389
bad_words = []
390390

391-
if not args.suffix:
392-
suffixes = list(SUFFIX2MIME.keys())
393-
else:
394-
suffixes = args.suffix
391+
suffixes = [*set(args.suffix)] # remove duplicates
395392

396393
if any([args.brief, output_lvl >= 0]):
397394
print(f"Prefixes: {prefixes}")

0 commit comments

Comments
 (0)