修复一处问题

This commit is contained in:
xys20071111 2022-06-20 21:11:38 +08:00
parent 186324bfb8
commit 7cf982baec
No known key found for this signature in database
GPG Key ID: 29CB7FFE349CFD03
2 changed files with 2 additions and 3 deletions

View File

@ -28,8 +28,7 @@ class APIMsgHandler extends EventEmitter {
} }
} }
if (authedClientSet.has(socket)) { if (authedClientSet.has(socket)) {
super.emit.apply(this, [eventName, socket, args]); return super.emit.apply(this, [eventName, socket, args]);
return true;
} }
return false; return false;
} }

View File

@ -1,4 +1,4 @@
// eslint-disable-next-line @typescript-eslint/no-explicit-any // deno-lint-ignore no-explicit-any
export function FormatString(str: string, args: any): string { export function FormatString(str: string, args: any): string {
let result: string = str; let result: string = str;
for(const arg in args) { for(const arg in args) {