builder/remotecontext/remote.go
Function GetWithStatusError
has 5 return statements (exceeds 4 allowed). Open
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 {