File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ export class SharedCore {
160160 * Represents the client instance on which a call is made.
161161 */
162162export class InnerClient {
163- constructor (
163+ public constructor (
164164 public id : number ,
165165 public readonly core : SharedCore ,
166166 public config : ClientAuthConfig ,
@@ -169,7 +169,7 @@ export class InnerClient {
169169 public async invoke ( config : InvokeConfig ) : Promise < string > {
170170 try {
171171 return await this . core . invoke ( config ) ;
172- } catch ( err : any ) {
172+ } catch ( err : unknown ) {
173173 if ( err instanceof DesktopSessionExpired ) {
174174 const newId = await this . core . initClient ( this . config ) ;
175175 this . id = parseInt ( newId , 10 ) ;
Original file line number Diff line number Diff line change @@ -143,7 +143,6 @@ export class SharedLibCore implements Core {
143143
144144 const inputBuf = Buffer . from ( JSON . stringify ( req ) , "utf8" ) ;
145145
146- try {
147146 const nativeResponse = await this . lib . sendMessage ( inputBuf ) ;
148147
149148 if ( ! ( nativeResponse instanceof Uint8Array ) ) {
@@ -166,10 +165,6 @@ export class SharedLibCore implements Core {
166165 : JSON . stringify ( response . payload ) ;
167166
168167 throwError ( errorMessage ) ;
169- }
170- } catch ( e ) {
171- // Catch errors from the native call or from JSON parsing
172- throw e ;
173168 }
174169 }
175170
You can’t perform that action at this time.
0 commit comments