waku-org/go-waku

View on GitHub
library/filter.go

Summary

Maintainability
A
1 hr
Test Coverage

Function FilterUnsubscribe has 7 return statements (exceeds 4 allowed).
Open

func FilterUnsubscribe(instance *WakuInstance, filterJSON string, peerID string, ms int) error {
    cf, err := toContentFilter(filterJSON)
    if err != nil {
        return err
    }
Severity: Major
Found in library/filter.go - About 45 mins to fix

    Function FilterSubscribe has 5 return statements (exceeds 4 allowed).
    Open

    func FilterSubscribe(instance *WakuInstance, filterJSON string, peerID string, ms int) (string, error) {
        cf, err := toContentFilter(filterJSON)
        if err != nil {
            return "", err
        }
    Severity: Major
    Found in library/filter.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status