Skip to content

Commit

Permalink
chore(grpc-sdk): rm unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
kon14 committed Dec 19, 2023
1 parent cd80f09 commit ec6ec74
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions libraries/grpc-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,7 @@ export default class ConduitGrpcSdk {
return this._initialize();
}
(this._core as unknown) = new Core(this.name, this.serverUrl, this._grpcToken);
await this.connectToCore().catch(err => {
process.exit(-1);
});
await this.connectToCore().catch(() => process.exit(-1));
this._initialize();
}

Expand Down Expand Up @@ -326,12 +324,12 @@ export default class ConduitGrpcSdk {
emitter.emit(`module-connection-update:${m.moduleName}`, true);
});
});
emitter.on('core-status-update', modules => {
emitter.on('core-status-update', () => {
this.connectToCore()
.then(() => {
this._initialize();
})
.catch(err => {
.catch(() => {
process.exit(-1);
});
});
Expand Down

0 comments on commit ec6ec74

Please sign in to comment.