]> git.codecow.com Git - nano-pow.git/commitdiff
Remove unnecessary type check since this is just called internally during build.
authorChris Duncan <chris@codecow.com>
Sat, 18 Jul 2026 20:59:02 +0000 (13:59 -0700)
committerChris Duncan <chris@codecow.com>
Sun, 19 Jul 2026 07:18:45 +0000 (00:18 -0700)
scripts/blake2b-gen.js

index 5df40c8924e3e3199b4be49a6b6d2c92c2e7fddd..3cbadde958880f3b129454fee1d22e03ee9755d6 100644 (file)
@@ -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.
         *