diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-11-07 17:19:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 17:19:52 +0100 |
commit | a04f641c9d9d95c232db81aa4649a00e7e7e87e1 (patch) | |
tree | b3c42bc1f59b2d6cc8e6260aead993bee8d13423 /pylint/config | |
parent | f262c43bc430d7146d0cc9a9bd968fc89981e01e (diff) | |
download | pylint-git-a04f641c9d9d95c232db81aa4649a00e7e7e87e1.tar.gz |
[use-implicit-booleaness] Fix comparison to empty strings across the codebase (#7722)
As it will become a default check in #6870 it will be easier to review it if we separate the two
Diffstat (limited to 'pylint/config')
-rw-r--r-- | pylint/config/_pylint_config/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/config/_pylint_config/utils.py b/pylint/config/_pylint_config/utils.py index 5460b2fa2..cd5f8affe 100644 --- a/pylint/config/_pylint_config/utils.py +++ b/pylint/config/_pylint_config/utils.py @@ -83,7 +83,7 @@ def validate_yes_no(question: str, default: Literal["yes", "no"] | None) -> bool # pylint: disable-next=bad-builtin answer = input(question).lower() - if answer == "" and default: + if not answer and default: answer = default if answer not in YES_NO_ANSWERS: |