refactor: fsPromise catch

This commit is contained in:
手瓜一十雪 committed 2024-09-10 18:41:01 +08:00
1 parent b040c9b118
commit ad8af12a10
1 file changed
+3 -1
+3 -1
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,