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);