From: Chris Duncan Date: Sun, 3 Aug 2025 10:45:40 +0000 (-0700) Subject: Fill is redundant on a newly initialized array. X-Git-Tag: v0.10.5~46^2~30 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=2c27eac519f3c25c3124451b69d8e085de5706cd;p=libnemo.git Fill is redundant on a newly initialized array. --- diff --git a/src/lib/nano-nacl.ts b/src/lib/nano-nacl.ts index 1840a11..71b14d8 100644 --- a/src/lib/nano-nacl.ts +++ b/src/lib/nano-nacl.ts @@ -142,7 +142,6 @@ export class NanoNaCl { let v, c const s = 1 << 16 const t = new Array(31) - t.fill(0) // init t values for (let i = 0; i < 16; i++) { @@ -182,7 +181,6 @@ export class NanoNaCl { let v, c const s = 1 << 16 const t = new Array(31) - t.fill(0) // init t values, same as Multiply except we can skip some iterations of // the inner loop since a[x]*a[y] + a[y]*a[x] = 2*a[x]*a[y]