Chore: Start harmonizing linting with plugin SDK (#25854)

* Chore: Harmonize linting with plugin SDK

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Chore: Fix linting issues

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-06-29 14:08:32 +02:00
committed by GitHub
parent 942a14b4ce
commit 5070f7a75b
44 changed files with 244 additions and 171 deletions

View File

@@ -205,11 +205,15 @@ func (c *baseClientImpl) executeRequest(method, uriPath, uriQuery string, body [
elapsed := time.Since(start)
clientLog.Debug("Executed request", "took", elapsed)
}()
res, err := ctxhttp.Do(c.ctx, httpClient, req)
//nolint:bodyclose
resp, err := ctxhttp.Do(c.ctx, httpClient, req)
if err != nil {
return nil, err
}
return &response{
httpResponse: res,
httpResponse: resp,
reqInfo: reqInfo,
}, err
}, nil
}
func (c *baseClientImpl) ExecuteMultisearch(r *MultiSearchRequest) (*MultiSearchResponse, error) {