]> git.codecow.com Git - libnemo.git/commitdiff
Remove redundant condition.
authorChris Duncan <chris@zoso.dev>
Fri, 11 Jul 2025 06:02:27 +0000 (23:02 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 11 Jul 2025 06:02:27 +0000 (23:02 -0700)
src/lib/wallets/wallet.ts

index e35b808a21c333baab3f712e7dfb57918a906532..29f64b6ce1fbc28e27ccdd5fd80a799e4a80484e 100644 (file)
@@ -113,7 +113,7 @@ export abstract class Wallet {
                        for (const keypair of keypairs) {\r
                                const { privateKey, publicKey, index } = keypair\r
                                if (index == null) throw new RangeError('Account keys derived but index missing')\r
-                               if (privateKey != null && privateKey) {\r
+                               if (privateKey != null) {\r
                                        output[index] = await Account.fromPrivateKey(privateKey, index)\r
                                } else if (publicKey != null) {\r
                                        output[index] = await Account.fromPublicKey(publicKey, index)\r