From 49ad9c4c9f0d3060c6052885450a726a247da1de Mon Sep 17 00:00:00 2001 From: Liench Volodymyr Date: Fri, 8 Nov 2024 11:20:22 +0100 Subject: [PATCH] fix indentaion --- lib/HiveClient.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/HiveClient.ts b/lib/HiveClient.ts index 5ed7f68..7d57cd4 100644 --- a/lib/HiveClient.ts +++ b/lib/HiveClient.ts @@ -65,22 +65,22 @@ export default class HiveClient extends EventEmitter implements IHiveClient { this.connection.getConnection().on('error', (error: Error) => { this.emit('error', error); - }); + }); this.connection.getConnection().on('reconnecting', (params: { - delay: number, - attempt: number - }) => { + delay: number, + attempt: number + }) => { this.emit('reconnecting', params); - }); + }); - this.connection.getConnection().on('close', () => { - this.emit('close'); - }); + this.connection.getConnection().on('close', () => { + this.emit('close'); + }); this.connection.getConnection().on('timeout', () => { - this.emit('timeout'); - }); + this.emit('timeout'); + }); return this; } @@ -92,9 +92,9 @@ export default class HiveClient extends EventEmitter implements IHiveClient { * @throws {StatusError} */ openSession(request: OpenSessionRequest): Promise { - if (!this.connection?.isConnected()) { + if (!this.connection?.isConnected()) { return Promise.reject(new HiveDriverError('HiveClient: connection is lost')); - } + } const driver = new HiveDriver( this.TCLIService_types,