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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user