Skip to content

Commit aec5efb

Browse files
committed
Second option for _is_env_set_and_non_empty
1 parent c6ca5e5 commit aec5efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylint/lint/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,4 @@ def augmented_sys_path(additional_paths: Sequence[str]) -> Iterator[None]:
138138

139139
def _is_env_set_and_non_empty(env_var: str) -> bool:
140140
"""Checks if env_var is set and non-empty."""
141-
return os.environ.get(env_var) not in ["", None]
141+
return bool(os.environ.get(env_var))

0 commit comments

Comments
 (0)