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) {
    // #nosec G107
    if resp, err = http.Get(address); 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