status-im/status-go

View on GitHub
services/local-notifications/transaction.go

Summary

Maintainability
A
1 hr
Test Coverage
C
79%

Avoid deeply nested control flow statements.
Open

                    if event.BlockNumber != nil {
                        for _, address := range event.Accounts {
                            if _, ok := maxKnownBlocks[address]; !ok {
                                maxKnownBlocks[address] = event.BlockNumber
                            }
Severity: Major
Found in services/local-notifications/transaction.go - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            } else if event.BlockNumber.Cmp(maxKnownBlocks[address]) == 1 {
                                maxKnownBlocks[address] = event.BlockNumber
                                newBlocks = true
                            }
    Severity: Major
    Found in services/local-notifications/transaction.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status