fix code style
diff --git a/src/client/BaseSessionPool.ts b/src/client/BaseSessionPool.ts index 691fc76..b3a013b 100644 --- a/src/client/BaseSessionPool.ts +++ b/src/client/BaseSessionPool.ts
@@ -173,9 +173,9 @@ } reject(new Error("Timeout waiting for available session")); }, waitTimeout); - + // Use unref() so timeout doesn't prevent process exit - if (typeof timeoutId === 'object' && 'unref' in timeoutId) { + if (typeof timeoutId === "object" && "unref" in timeoutId) { timeoutId.unref(); }
diff --git a/src/connection/Connection.ts b/src/connection/Connection.ts index a18f0e2..959f385 100644 --- a/src/connection/Connection.ts +++ b/src/connection/Connection.ts
@@ -89,7 +89,7 @@ // This prevents the connection from keeping the process alive if (this.connection && (this.connection as any).connection) { const socket = (this.connection as any).connection; - if (socket && typeof socket.unref === 'function') { + if (socket && typeof socket.unref === "function") { socket.unref(); logger.debug("Socket unref'd to allow process exit"); } @@ -193,7 +193,11 @@ reject(new Error("Close session timeout")); }, 5000); // Use unref() so timeout doesn't prevent process exit - if (timeoutHandle && typeof timeoutHandle === 'object' && 'unref' in timeoutHandle) { + if ( + timeoutHandle && + typeof timeoutHandle === "object" && + "unref" in timeoutHandle + ) { timeoutHandle.unref(); } }),