From: Chris Duncan Date: Mon, 18 Aug 2025 14:59:25 +0000 (-0700) Subject: Revert ternary operator to boolean cast. X-Git-Tag: v0.10.5~41^2~73 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=fa052bba2dde62a814631bf3b3a3d0e0be23e1a7;p=libnemo.git Revert ternary operator to boolean cast. --- diff --git a/src/lib/crypto/nano-nacl.ts b/src/lib/crypto/nano-nacl.ts index f00c8e2..7598dac 100644 --- a/src/lib/crypto/nano-nacl.ts +++ b/src/lib/crypto/nano-nacl.ts @@ -200,7 +200,8 @@ export class NanoNaCl { // the inner loop since a[x]*a[y] + a[y]*a[x] = 2*a[x]*a[y] for (let i = 0; i < 16; i++) { for (let j = i; j < 16; j++) { - t[i + j] += a[i] * a[j] * (i < j ? 2 : 1) + //@ts-expect-error + t[i + j] += a[i] * a[j] * ((i < j) + 1) } }