From 330e4675d3e9cc75370a0922129f74f11c8717d9 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 26 Nov 2024 14:26:56 -0800 Subject: [PATCH] Discard redundant variable. --- src/lib/blake2b.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/blake2b.ts b/src/lib/blake2b.ts index 8bec5dc..ce9689e 100644 --- a/src/lib/blake2b.ts +++ b/src/lib/blake2b.ts @@ -291,8 +291,6 @@ function toHex (n: number) { return n.toString(16).padStart(2, '0') } -var Proto = Blake2b - export default function createHash (outlen: number, key?: Uint8Array, salt?: Uint8Array, personal?: Uint8Array, noAssert?: boolean) { if (noAssert !== true) { if (outlen < BYTES_MIN) @@ -321,5 +319,5 @@ export default function createHash (outlen: number, key?: Uint8Array, salt?: Uin } } - return new Proto(outlen, key, salt, personal) + return new Blake2b(outlen, key, salt, personal) } -- 2.34.1