From fa052bba2dde62a814631bf3b3a3d0e0be23e1a7 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Mon, 18 Aug 2025 07:59:25 -0700 Subject: [PATCH] Revert ternary operator to boolean cast. --- src/lib/crypto/nano-nacl.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) } } -- 2.47.3