]> git.codecow.com Git - libnemo.git/commitdiff
Remove redundant condition.
authorChris Duncan <chris@codecow.com>
Sat, 8 Aug 2026 09:29:42 +0000 (02:29 -0700)
committerChris Duncan <chris@codecow.com>
Sat, 8 Aug 2026 09:29:42 +0000 (02:29 -0700)
src/lib/wallet/accounts.ts

index bc8710424d853a3b19c8aea844cc3ac7de78edac..7ff6f1a1caa85510c55222baff591ce7045e8106 100644 (file)
@@ -52,7 +52,7 @@ export async function _accounts (type: WalletType, accounts: Map<number, Account
                                index: buffer
                        })
                        for (const [index, publicKey] of Object.entries(publicKeys)) {
-                               if (typeof Number(index) === 'number' && publicKey instanceof ArrayBuffer) {
+                               if (publicKey instanceof ArrayBuffer) {
                                        const account = new Account(publicKey)
                                        output.set(Number(index), account)
                                        accounts.set(Number(index), account)