style: lint

This commit is contained in:
手瓜一十雪
2024-11-21 11:09:23 +08:00
parent 02e39b5714
commit b2075130d9
8 changed files with 17 additions and 17 deletions

View File

@@ -234,7 +234,7 @@ export class NTEventWrapper {
this.EventTask.get(ListenerMainName)?.get(ListenerSubName)?.set(id, eventCallback);
this.createListenerFunction(ListenerMainName);
let eventResult = this.createEventFunction(serviceAndMethod)!(...(args));
const eventResult = this.createEventFunction(serviceAndMethod)!(...(args));
const eventRetHandle = (eventData: any) => {
retEvent = eventData;
@@ -252,7 +252,7 @@ export class NTEventWrapper {
),
);
}
}
};
if (eventResult instanceof Promise) {
eventResult.then((eventResult: any) => {
eventRetHandle(eventResult);

View File

@@ -290,5 +290,5 @@ function replyElementToText(replyElement: any, msg: RawMessage, recursiveLevel:
?
rawMessageToText(recordMsgOrNull, recursiveLevel + 1) :
`未找到消息记录 (MsgId = ${replyElement.sourceMsgIdInRecords})`
}]`;
}]`;
}

View File

@@ -55,7 +55,7 @@ export async function getVideoInfo(filePath: string, logger: LogWrapper): Promis
logger.log(`视频尺寸: ${videoStream.width}x${videoStream.height}`);
if (!videoStream.width || !metadata.format.format_name || !videoStream.height) {
throw new Error('获取基础信息失败')
throw new Error('获取基础信息失败');
}
return {
width: videoStream.width,