fix: do not await is_file()

This commit is contained in:
2022-09-28 12:26:54 +07:00
parent 184e96fa2d
commit e3045f5150
2 changed files with 2 additions and 2 deletions

View File

@ -349,7 +349,7 @@ class Installer:
async def extract_and_patch(old_file, diff_file):
diff_path = self.temp_path.joinpath(diff_file)
if await diff_path.is_file():
if diff_path.is_file():
await diff_path.unlink(missing_ok=True)
await asyncio.to_thread(archive.extract, diff_file, self.temp_path)
patch_path = self.temp_path.joinpath(diff_file)