From 178a3ad11f9a3c9bf6913c20a6e3579cd1484460 Mon Sep 17 00:00:00 2001 From: Mzack9999 Date: Thu, 15 Oct 2020 00:34:45 +0200 Subject: [PATCH] corrected wrong syntax --- v2/pkg/executer/executer_http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/pkg/executer/executer_http.go b/v2/pkg/executer/executer_http.go index 266fee35b..abff342da 100644 --- a/v2/pkg/executer/executer_http.go +++ b/v2/pkg/executer/executer_http.go @@ -488,7 +488,7 @@ func makeHTTPClient(proxyURL *url.URL, options *HTTPOptions) (*retryablehttp.Cli dialer, err := cache.NewDialer(cache.DefaultOptions) if err != nil { - return err + return nil, err } transport := &http.Transport{ @@ -533,7 +533,7 @@ func makeHTTPClient(proxyURL *url.URL, options *HTTPOptions) (*retryablehttp.Cli Transport: transport, Timeout: time.Duration(options.Timeout) * time.Second, CheckRedirect: makeCheckRedirectFunc(followRedirects, maxRedirects), - }, retryablehttpOptions) + }, retryablehttpOptions), nil } type checkRedirectFunc func(_ *http.Request, requests []*http.Request) error