Skip to content

Commit 4bf69cf

Browse files
committed
Fix 180: Fix typo in ternary statements
Signed-off-by: Cesar Lizarraga <[email protected]>
1 parent 0f1fb7d commit 4bf69cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/python_inspector/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def pip_conf_get_index_urls() -> list:
8888
extra_index_urls = extra_index_urls.stdout.decode("utf-8").split()
8989

9090
# Extract index urls from environment variables
91-
pip_index_url_env = [] if os.getenv("PIP_INDEX_URL") is not None else os.getenv("PIP_INDEX_URL").split()
92-
pip_extra_index_url_env = [] if os.getenv("PIP_EXTRA_INDEX_URL") is not None else os.getenv("PIP_EXTRA_INDEX_URL").split()
91+
pip_index_url_env = [] if os.getenv("PIP_INDEX_URL") is None else os.getenv("PIP_INDEX_URL").split()
92+
pip_extra_index_url_env = [] if os.getenv("PIP_EXTRA_INDEX_URL") is None else os.getenv("PIP_EXTRA_INDEX_URL").split()
9393
pip_env_urls = pip_index_url_env + pip_extra_index_url_env
9494

9595
all_index_urls = [url for url in index_urls + extra_index_urls + pip_env_urls if url != ""]

0 commit comments

Comments
 (0)