grokify/mogo

View on GitHub
net/http/httputilmore/http_request.go

Summary

Maintainability
A
40 mins
Test Coverage

Function GetWriteFile has 6 return statements (exceeds 4 allowed).
Open

func GetWriteFile(client *http.Client, url, filename string) (*http.Response, error) {
    if client == nil {
        client = &http.Client{}
    }
    resp, err := client.Get(url)
Severity: Major
Found in net/http/httputilmore/http_request.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status