Skip to content

Commit e2adbb9

Browse files
committed
Address lint errors
1 parent 17ed0e3 commit e2adbb9

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

client/src/core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class SharedCore {
160160
* Represents the client instance on which a call is made.
161161
*/
162162
export 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);

client/src/shared_lib_core.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)