We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_is_env_set_and_non_empty
1 parent c6ca5e5 commit aec5efbCopy full SHA for aec5efb
pylint/lint/utils.py
@@ -138,4 +138,4 @@ def augmented_sys_path(additional_paths: Sequence[str]) -> Iterator[None]:
138
139
def _is_env_set_and_non_empty(env_var: str) -> bool:
140
"""Checks if env_var is set and non-empty."""
141
- return os.environ.get(env_var) not in ["", None]
+ return bool(os.environ.get(env_var))
0 commit comments