Skip to content

Commit

Permalink
add type annotation to function
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Nov 28, 2022
1 parent 41c3781 commit 809803c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmap/connection_pool.ts
Expand Up @@ -617,7 +617,7 @@ export class ConnectionPool extends TypedEventEmitter<ConnectionPoolEvents> {
*
* @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) {
Expand Down

0 comments on commit 809803c

Please sign in to comment.