Fixed shadow declaration of err

dev
Víctor Zamanillo 2020-10-11 11:53:59 +02:00
parent 5c00615c0d
commit 21d0b08aaf
1 changed files with 3 additions and 3 deletions

View File

@ -304,9 +304,9 @@ func (e *HTTPExecuter) handleHTTP(reqURL string, request *requests.HTTPRequest,
)
if e.debug {
dumpedRequest, err := requests.Dump(request, reqURL)
if err != nil {
return err
dumpedRequest, dumpErr := requests.Dump(request, reqURL)
if dumpErr != nil {
return dumpErr
}
gologger.Infof("Dumped HTTP request for %s (%s)\n\n", reqURL, e.template.ID)