Skip to content

Commit fc10452

Browse files
committed
Remove redundant functions in ledger-keyring.ts
1 parent e34ca09 commit fc10452

2 files changed

Lines changed: 3 additions & 14 deletions

File tree

packages/keyring-eth-ledger-bridge/jest.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ module.exports = merge(baseConfig, {
2323
// An object that configures minimum threshold enforcement for coverage results
2424
coverageThreshold: {
2525
global: {
26-
branches: 91.89,
26+
branches: 92.77,
2727
functions: 97.87,
28-
lines: 97.16,
29-
statements: 97.19,
28+
lines: 97.28,
29+
statements: 97.31,
3030
},
3131
},
3232
});

packages/keyring-eth-ledger-bridge/src/ledger-keyring.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,6 @@ export class LedgerKeyring implements Keyring {
9595

9696
deviceId = '';
9797

98-
static #isLedgerError(
99-
error: unknown,
100-
): error is { errorCode: string; message: string } {
101-
return (
102-
typeof error === 'object' &&
103-
error !== null &&
104-
'errorCode' in error &&
105-
'message' in error
106-
);
107-
}
108-
10998
readonly type: string = keyringType;
11099

111100
page = 0;

0 commit comments

Comments
 (0)