palladians / pallad

Function with cyclomatic complexity higher than threshold JS-R1005
Anti-pattern
Minor
19 days ago2 months old
request has a cyclomatic complexity of 30 with "very-high" risk
160      throw this.createProviderRpcError(4100, "Unauthorized")
161    }
162  }
163  public async request<T = unknown>(args: RequestArguments): Promise<T> {164    // Step 1: Check if request instantiator is in blocked list.
165    const { params } = args
166    const requestOrigin = params.origin