Skip to content

Commit 2412969

Browse files
committed
prefer const
1 parent 8ce418e commit 2412969

File tree

1 file changed

+2
-2
lines changed
  • packages/bitcore-wallet-client/src/lib

1 file changed

+2
-2
lines changed

packages/bitcore-wallet-client/src/lib/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3399,7 +3399,7 @@ export class API extends EventEmitter {
33993399
const keyCredentialIndex: { credentials: Credentials; key: Key; opts: any; status?: string }[] = [];
34003400
const clients = [];
34013401
let k: Key;
3402-
let sets: Array<{ nonCompliantDerivation: boolean; useLegacyCoinType?: boolean; useLegacyPurpose: boolean; passphrase?: any }> = [
3402+
const sets: Array<{ nonCompliantDerivation: boolean; useLegacyCoinType?: boolean; useLegacyPurpose: boolean; passphrase?: any }> = [
34033403
{
34043404
// current wallets: /[44,48]/[0,145]'/
34053405
nonCompliantDerivation: false,
@@ -3436,7 +3436,7 @@ export class API extends EventEmitter {
34363436
}
34373437
];
34383438

3439-
sets = sets.concat(legacyOpts);
3439+
sets.push(...legacyOpts);
34403440
}
34413441

34423442
const generateCredentials = (key, opts) => {

0 commit comments

Comments
 (0)