去掉res2path无用的判断

This commit is contained in:
Elaina 2024-09-09 22:05:02 +08:00
parent 9565ec33c6
commit 442021dc01

View file

@ -32,8 +32,7 @@ def img2bytes(img: tp.Image) -> bytes:
def res2path(res: tp.Res) -> Path:
if not res.startswith("@"):
res = f"@install/arknights_mower/resources/{res}"
res = f"@install/arknights_mower/resources/{res}"
if not res.endswith(".jpg"):
res += ".png"
return get_path(res)