]> git.codecow.com Git - libnemo.git/commitdiff
Fill is redundant on a newly initialized array.
authorChris Duncan <chris@zoso.dev>
Sun, 3 Aug 2025 10:45:40 +0000 (03:45 -0700)
committerChris Duncan <chris@zoso.dev>
Sun, 3 Aug 2025 10:45:40 +0000 (03:45 -0700)
src/lib/nano-nacl.ts

index 1840a11ff170810343c1a91e2122f63a6f1fb128..71b14d847dc7e0956308c8d92836bb73c263bffd 100644 (file)
@@ -142,7 +142,6 @@ export class NanoNaCl {
                let v, c\r
                const s = 1 << 16\r
                const t = new Array(31)\r
-               t.fill(0)\r
 \r
                // init t values\r
                for (let i = 0; i < 16; i++) {\r
@@ -182,7 +181,6 @@ export class NanoNaCl {
                let v, c\r
                const s = 1 << 16\r
                const t = new Array(31)\r
-               t.fill(0)\r
 \r
                // init t values, same as Multiply except we can skip some iterations of\r
                // the inner loop since a[x]*a[y] + a[y]*a[x] = 2*a[x]*a[y]\r