From 809803cdbfc4856c14cb5c3323d80b68182a2267 Mon Sep 17 00:00:00 2001 From: Bailey Pearson Date: Mon, 28 Nov 2022 09:35:54 -0500 Subject: [PATCH] add type annotation to function --- src/cmap/connection_pool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmap/connection_pool.ts b/src/cmap/connection_pool.ts index 63053c4cb2..276712ea54 100644 --- a/src/cmap/connection_pool.ts +++ b/src/cmap/connection_pool.ts @@ -617,7 +617,7 @@ export class ConnectionPool extends TypedEventEmitter { * * @returns `true` if the connection was destroyed, `false` otherwise. */ - private destroyConnectionIfPerished(connection: Connection) { + private destroyConnectionIfPerished(connection: Connection): boolean { const isStale = this.connectionIsStale(connection); const isIdle = this.connectionIsIdle(connection); if (!isStale && !isIdle && !connection.closed) {