]> git.codecow.com Git - libnemo.git/commitdiff
Remove unnecessary normalization.
authorChris Duncan <chris@codecow.com>
Mon, 10 Aug 2026 13:20:59 +0000 (06:20 -0700)
committerChris Duncan <chris@codecow.com>
Mon, 10 Aug 2026 13:20:59 +0000 (06:20 -0700)
src/lib/vault/vault-worker.ts

index 83bac32189628631fe5d820d2712f1c903ab48fa..5a4d42db253548421535de987206ca4e0ab36e91 100644 (file)
@@ -202,7 +202,7 @@ function derive (index?: Uint32Array): Promise<Record<string, number | ArrayBuff
                        throw new VaultError(`Maximum ${MAX_DERIVATIONS} accounts per call`)
                }
                const promises = []
-               const values = typeof index === 'number' ? [index] : index.values()
+               const values = index.values()
                for (const i of values) {
                        const prv = new Uint8Array(32)
                        promises.push(_ckd(i)