Skip to content

Commit e11caaf

Browse files
committed
Second option for _is_env_set_and_non_empty
1 parent fd5e34f commit e11caaf

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
@@ -151,4 +151,4 @@ def _is_relative_to(self: Path, *other: Path) -> bool:
151151

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

0 commit comments

Comments
 (0)