Skip to content

Commit

Permalink
fix indentaion
Browse files Browse the repository at this point in the history
  • Loading branch information
lenchv committed Nov 8, 2024
1 parent 9a80e88 commit 49ad9c4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lib/HiveClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -92,9 +92,9 @@ export default class HiveClient extends EventEmitter implements IHiveClient {
* @throws {StatusError}
*/
openSession(request: OpenSessionRequest): Promise<IHiveSession> {
if (!this.connection?.isConnected()) {
if (!this.connection?.isConnected()) {
return Promise.reject(new HiveDriverError('HiveClient: connection is lost'));
}
}

const driver = new HiveDriver(
this.TCLIService_types,
Expand Down

0 comments on commit 49ad9c4

Please sign in to comment.