fix: function does not need to be async

This commit is contained in:
Derrick Hammer 2023-07-27 10:44:44 -04:00
parent 4b8240bcd5
commit 09b691ce0f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ export function getNetworkModuleStatus(
module?: string, module?: string,
// @ts-ignore // @ts-ignore
CM: connectModuleBound = connectModule.bind(null, module), CM: connectModuleBound = connectModule.bind(null, module),
): Promise<void> | (() => Promise<void>) { ): Promise<void> | (() => void) {
let recvUpdate = (data) => { let recvUpdate = (data) => {
callback?.(data); callback?.(data);
}; };
@ -52,7 +52,7 @@ export function getNetworkModuleStatus(
let closed = false; let closed = false;
return async () => { return () => {
if (closed) { if (closed) {
return; return;
} }