From: Chris Duncan Date: Fri, 11 Jul 2025 06:02:27 +0000 (-0700) Subject: Remove redundant condition. X-Git-Tag: v0.10.5~60 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=945120654ef685f53c307501855b3357e37b21a8;p=libnemo.git Remove redundant condition. --- diff --git a/src/lib/wallets/wallet.ts b/src/lib/wallets/wallet.ts index e35b808..29f64b6 100644 --- a/src/lib/wallets/wallet.ts +++ b/src/lib/wallets/wallet.ts @@ -113,7 +113,7 @@ export abstract class Wallet { for (const keypair of keypairs) { const { privateKey, publicKey, index } = keypair if (index == null) throw new RangeError('Account keys derived but index missing') - if (privateKey != null && privateKey) { + if (privateKey != null) { output[index] = await Account.fromPrivateKey(privateKey, index) } else if (publicKey != null) { output[index] = await Account.fromPublicKey(publicKey, index)