polkadot-js/wasm

View on GitHub
packages/wasm-bridge/src/init.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function createWasmFn has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function createWasmFn <C extends WasmBaseInstance> (root: 'crypto', wasmBytes: null | Uint8Array, asmFn: null | ((wbg: WasmImports) => C)): InitFn<C> {
  return async (wbg: WasmImports): InitPromise<C> => {
    const result: InitResult<C> = {
      error: null,
      type: 'none',
Severity: Minor
Found in packages/wasm-bridge/src/init.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status