From: Chris Duncan Date: Sat, 18 Jul 2026 20:59:02 +0000 (-0700) Subject: Remove unnecessary type check since this is just called internally during build. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=2366aa20c59c484db83dc378df304d657af187d2;p=nano-pow.git Remove unnecessary type check since this is just called internally during build. --- diff --git a/scripts/blake2b-gen.js b/scripts/blake2b-gen.js index 5df40c8..3cbadde 100644 --- a/scripts/blake2b-gen.js +++ b/scripts/blake2b-gen.js @@ -20,11 +20,6 @@ import { writeFile } from 'node:fs/promises' * @returns {string} */ function generate (api) { - - if (api !== 'wasm' && api !== 'webgl' && api !== 'webgpu') { - throw new TypeError(`Cannot generate BLAKE2b code for ${api}`) - } - /** * Shorthand for adding two operands and storing sum in the first. *