dotcloud/docker

View on GitHub
builder/remotecontext/remote.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func GetWithStatusError(address string) (resp *http.Response, err error) {
    resp, err = http.Get(address) // #nosec G107 -- ignore G107: Potential HTTP request made with variable url
    if err != nil {
        if uerr, ok := err.(*url.Error); ok {
            if derr, ok := uerr.Err.(*net.DNSError); ok && !derr.IsTimeout {
Severity: Major
Found in builder/remotecontext/remote.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status