Skip to content

Commit 36de3c5

Browse files
Update astrbot/base/paths.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 1151677 commit 36de3c5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

astrbot/base/paths.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ def is_root(cls, path: Path) -> bool:
8686
if not path.exists() or not path.is_dir():
8787
return False
8888
# 检查此目录内是是否包含.astrbot标记文件
89-
if not (path / ".astrbot").exists():
90-
return False
91-
return True
89+
return bool((path / ".astrbot").exists())
9290

9391
def reload(self) -> None:
9492
"""重新加载环境变量."""

0 commit comments

Comments
 (0)