gmantaos/Goirate

View on GitHub
src/torrents/search.go

Summary

Maintainability
A
1 hr
Test Coverage

Method SearchFilters.IsOk has 7 return statements (exceeds 4 allowed).
Open

func (f SearchFilters) IsOk(torrent *Torrent) bool {

    maxSize, _ := f.MaxSizeKB()
    minSize, _ := f.MinSizeKB()

Severity: Major
Found in src/torrents/search.go - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

        } else if t, exists := trnts[Default]; exists && ok(t) {
    
            torrent = t
        }
    Severity: Major
    Found in src/torrents/search.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status