mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 16:00:27 +00:00
style: lint
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -290,5 +290,5 @@ function replyElementToText(replyElement: any, msg: RawMessage, recursiveLevel:
|
||||
?
|
||||
rawMessageToText(recordMsgOrNull, recursiveLevel + 1) :
|
||||
`未找到消息记录 (MsgId = ${replyElement.sourceMsgIdInRecords})`
|
||||
}]`;
|
||||
}]`;
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user