status-im/status-go

View on GitHub
services/wallet/router/router_v2.go

Summary

Maintainability
A
2 hrs
Test Coverage
C
75%

Consider simplifying this complex logical expression.
Open

                if p.ProcessorName == b.ProcessorName &&
                    (p.FromChain == nil && b.FromChain == nil || p.FromChain.ChainID == b.FromChain.ChainID) &&
                    (p.ToChain == nil && b.ToChain == nil || p.ToChain.ChainID == b.ToChain.ChainID) &&
                    (p.FromToken == nil && b.FromToken == nil || p.FromToken.Symbol == b.FromToken.Symbol) {
Severity: Critical
Found in services/wallet/router/router_v2.go - About 2 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                        if err != nil {
                            return errors.CreateErrorResponseFromError(err)
                        }
    Severity: Major
    Found in services/wallet/router/router_v2.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status