summaryrefslogtreecommitdiff
path: root/pylint/config
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2022-11-07 17:19:52 +0100
committerGitHub <noreply@github.com>2022-11-07 17:19:52 +0100
commita04f641c9d9d95c232db81aa4649a00e7e7e87e1 (patch)
treeb3c42bc1f59b2d6cc8e6260aead993bee8d13423 /pylint/config
parentf262c43bc430d7146d0cc9a9bd968fc89981e01e (diff)
downloadpylint-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.py2
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: