polkadot-js/apps

View on GitHub
packages/react-hooks/src/ctx/ApiStats.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function getStats has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function getStats (...apis: ApiPromise[]): { stats: ProviderStats, when: number } {
  const stats: ProviderStats = {
    active: {
      requests: 0,
      subscriptions: 0
Severity: Minor
Found in packages/react-hooks/src/ctx/ApiStats.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status