aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ipm/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipm/api.py b/src/ipm/api.py
index caeca6d..2cb6eee 100644
--- a/src/ipm/api.py
+++ b/src/ipm/api.py
@@ -68,7 +68,7 @@ def install(uri: str, index: str = "", echo: bool = False) -> None:
info("正在初始化 IPM 环境...", echo)
HOME.mkdir(parents=True, exist_ok=True)
- index = index if index else INDEX
+ index = index or INDEX
if uri.isalpha():
...