refactor: fsPromise catch

This commit is contained in:
手瓜一十雪 2024-09-10 18:41:01 +08:00
parent b040c9b118
commit ad8af12a10

View File

@ -207,7 +207,9 @@ export class NTQQFileApi {
throw new Error('文件异常大小为0');
}
if (converted) {
fsPromises.unlink(silkPath);
fsPromises.unlink(silkPath).then().catch(
(e) => this.context.logger.logError('删除临时文件失败', e)
);
}
return {
elementType: ElementType.PTT,