Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Nov 14, 2023
1 parent 699ac62 commit 81899b3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/pkg/testing/esutil/client.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package esutil

import (
"bytes"
"io"
"io/ioutil"
"net/http"
Expand Down Expand Up @@ -42,7 +41,6 @@ func MockESClient(t *testing.T) (*elasticsearch.Client, *MockTransport) {
func sendBodyString(body string) *http.Response {
return sendBody(strings.NewReader(body))
}
func sendBodyBytes(body []byte) *http.Response { return sendBody(bytes.NewReader(body)) }
func sendBody(body io.Reader) *http.Response {
return &http.Response{
StatusCode: http.StatusOK,
Expand Down

0 comments on commit 81899b3

Please sign in to comment.