fix: 移除未使用的临时目录变量 (#3286)

* Initial plan

* fix: 移除未使用的临时目录变量 (ruff check --fix)

Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: LIghtJUNction <106986785+LIghtJUNction@users.noreply.github.com>
This commit is contained in:
Copilot
2025-11-03 02:51:12 +08:00
committed by GitHub
parent b3f23b23da
commit 983264dc1a
3 changed files with 0 additions and 5 deletions
-1
View File
@@ -214,7 +214,6 @@ class Main(star.Star):
file_path = await comp.get_file()
if file_path.startswith("http"):
name = comp.name if comp.name else uuid.uuid4().hex[:8]
temp_dir = str(AstrbotPaths.astrbot_root / "temp")
path = str(AstrbotPaths.astrbot_root / "temp" / name)
await download_file(file_path, path)
else: