ReanGD/go-web-search

View on GitHub
crawler/body_parser.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func readBody(contentEncoding string, body io.Reader) ([]byte, error) {
    var err error
    result := []byte{}
    if contentEncoding == "gzip" {
        reader, err := gzip.NewReader(body)
Severity: Major
Found in crawler/body_parser.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status