From 36ca4d1f4755b927b9e39fbf150263a50e741c88 Mon Sep 17 00:00:00 2001 From: Andy Ford Date: Wed, 26 Jun 2024 16:01:24 +0100 Subject: [PATCH] typing: use void promise in timeout --- src/Typing.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Typing.ts b/src/Typing.ts index 933d5a9a..1470c287 100644 --- a/src/Typing.ts +++ b/src/Typing.ts @@ -160,10 +160,9 @@ export class DefaultTyping extends EventEmitter implements Typi */ private startTypingTimer(): void { this._logger.trace(`DefaultTyping.startTypingTimer();`); - // eslint-disable-next-line @typescript-eslint/no-misused-promises - this._timerId = setTimeout(async () => { + this._timerId = setTimeout(() => { this._logger.debug(`DefaultTyping.startTypingTimer(); timeout expired`); - await this.stop(); + void this.stop(); }, this._typingTimeoutMs); }