Skip to content

Commit f171b5a

Browse files
committed
Fix TS7053: use ProtocolKey type directly for Protocols indexing
1 parent 18d52f7 commit f171b5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/linejs/base/service/auth

packages/linejs/base/service/auth/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export class AuthService implements BaseService {
259259
const parsedBody = new Uint8Array(buf);
260260
let res: any;
261261
try {
262-
const protocol = Protocols[this.protocolType as unknown as number];
262+
const protocol = Protocols[this.protocolType];
263263
res = this.client.thrift.readThrift(parsedBody, protocol);
264264
} catch (_) {
265265
throw new InternalError("RequestError", `Invalid response buffer for logoutZ: <${[...parsedBody].map((v) => v.toString(16)).join(" ")}>`);

0 commit comments

Comments
 (0)