Skip to content

Commit

Permalink
Fix new CI error
Browse files Browse the repository at this point in the history
`val != ""` can be simplified to `not val` as an empty string is falsey
  • Loading branch information
DimitriPapadopoulos committed Mar 14, 2023
1 parent f830411 commit 3cadd09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codespell_lib/_codespell.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def parse_options(
cfg_args.append(f"--{key}")
# If value is blank, skip.
val = config["codespell"][key]
if val != "":
if not val:
cfg_args.append(val)

# Parse config file options.
Expand Down

0 comments on commit 3cadd09

Please sign in to comment.