From c6e4be53b5c008a949bdab05de7930b3c6c65ed2 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Sat, 4 Dec 2021 07:57:12 -0600 Subject: [PATCH] types --- client/webapp/fetchable-pair-verifier.ts | 4 ---- client/webapp/socket-verifier.ts | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/client/webapp/fetchable-pair-verifier.ts b/client/webapp/fetchable-pair-verifier.ts index 8c2e5e1..b19023e 100644 --- a/client/webapp/fetchable-pair-verifier.ts +++ b/client/webapp/fetchable-pair-verifier.ts @@ -87,10 +87,6 @@ export default class PairVerifierFetchable extends EventEmitter im ); } - canFetch() { - return true; - } - async handleMetadataConflict(changesType: AutoVerifierChangesType, primaryMetadata: GuildMetadata | null, trustedMetadata: GuildMetadata | null): Promise { // LOG.debug('metadata conflict', { // primaryClass: this.primary.constructor.name, diff --git a/client/webapp/socket-verifier.ts b/client/webapp/socket-verifier.ts index a3d5e0b..0a1a5d7 100644 --- a/client/webapp/socket-verifier.ts +++ b/client/webapp/socket-verifier.ts @@ -74,7 +74,7 @@ export default class SocketVerifier extends EventEmitter<{ 'verified': () => voi } // TODO: ensureVerified for send/update requests that may need to be in-order? - public async ensureVerified() { + public async ensureVerified(): Promise { if (this.isVerified) return; await this.verify(); }