Skip to content

Commit a42aa27

Browse files
add type annotation to function
1 parent 00c3e82 commit a42aa27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmap/connection_pool.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ export class ConnectionPool extends TypedEventEmitter<ConnectionPoolEvents> {
617617
*
618618
* @returns `true` if the connection was destroyed, `false` otherwise.
619619
*/
620-
private destroyConnectionIfPerished(connection: Connection) {
620+
private destroyConnectionIfPerished(connection: Connection): boolean {
621621
const isStale = this.connectionIsStale(connection);
622622
const isIdle = this.connectionIsIdle(connection);
623623
if (!isStale && !isIdle && !connection.closed) {

0 commit comments

Comments
 (0)