Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove error and update coverage
  • Loading branch information
gantunesr committed May 24, 2023
commit a844bfb0ed7a50daf14a6b9c072fa26fe6bd3d91
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