more formatting

This commit is contained in:
Christopher committed 2021-03-02 20:45:41 +01:00
1 parent 046447b0fb
commit f552c1212c
157 files changed
+635 -1579

No files matched your search

+2 -7
View File
@@ -25,18 +25,13 @@ export default class ClientUtils {
};
}
public emitNetPromise<T = any>(
eventName: string,
...args: any[]
): Promise<T> {
public emitNetPromise<T = any>(eventName: string, ...args: any[]): Promise<T> {
return new Promise((resolve, reject) => {
let hasTimedOut = false;
setTimeout(() => {
hasTimedOut = true;
reject(
`${eventName} has timed out after ${this._settings.promiseTimeout} ms`
);
reject(`${eventName} has timed out after ${this._settings.promiseTimeout} ms`);
}, this._settings.promiseTimeout);
// Have to use this as the regular uuid refused to work here for some