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

Commit

Permalink
Remove error and update coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gantunesr committed May 24, 2023
1 parent 410814d commit a844bfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ module.exports = {
// An object that configures minimum threshold enforcement for coverage results
coverageThreshold: {
global: {
branches: 69.51,
branches: 70.37,
functions: 92.72,
lines: 90.47,
statements: 90.69,
lines: 90.72,
statements: 90.93,
},
},
preset: 'ts-jest',
Expand Down
6 changes: 1 addition & 5 deletions src/KeyringController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -756,11 +756,7 @@ class KeyringController extends EventEmitter {
* @returns Keyrings matching the specified type.
*/
getKeyringsByType(type: string): Keyring<Json>[] {
const keyrings = this.keyrings.filter((keyring) => keyring.type === type);
if (!keyrings.length) {
throw new Error(KeyringControllerError.NoKeyring);
}
return keyrings;
return this.keyrings.filter((keyring) => keyring.type === type);
}

/**
Expand Down

0 comments on commit a844bfb

Please sign in to comment.