Skip to content

Commit

Permalink
BUG: Remove unused test when setting suffixes
Browse files Browse the repository at this point in the history
This commit partially reverts 775776e (ENH: Initialize default list of
suffixes) removing unused test when setting the suffix variable.

It also ensures there are no duplicated prefixes.
  • Loading branch information
jcfr committed Jul 10, 2023
1 parent 3740a17 commit 6486539
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions codespell.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,7 @@ def main():

bad_words = []

if not args.suffix:
suffixes = list(SUFFIX2MIME.keys())
else:
suffixes = args.suffix
suffixes = [*set(args.suffix)] # remove duplicates

if output_lvl > 1:
print(f"Prefixes: {prefixes}")
Expand Down

0 comments on commit 6486539

Please sign in to comment.