Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit a844bfb

Browse files
committed
Remove error and update coverage
1 parent 410814d commit a844bfb

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

jest.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ module.exports = {
4141
// An object that configures minimum threshold enforcement for coverage results
4242
coverageThreshold: {
4343
global: {
44-
branches: 69.51,
44+
branches: 70.37,
4545
functions: 92.72,
46-
lines: 90.47,
47-
statements: 90.69,
46+
lines: 90.72,
47+
statements: 90.93,
4848
},
4949
},
5050
preset: 'ts-jest',

src/KeyringController.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -756,11 +756,7 @@ class KeyringController extends EventEmitter {
756756
* @returns Keyrings matching the specified type.
757757
*/
758758
getKeyringsByType(type: string): Keyring<Json>[] {
759-
const keyrings = this.keyrings.filter((keyring) => keyring.type === type);
760-
if (!keyrings.length) {
761-
throw new Error(KeyringControllerError.NoKeyring);
762-
}
763-
return keyrings;
759+
return this.keyrings.filter((keyring) => keyring.type === type);
764760
}
765761

766762
/**

0 commit comments

Comments
 (0)