Fixing IndicesExist function
This commit is contained in:
parent
aa49572462
commit
ae25be9f6f
4
goes.go
4
goes.go
@ -357,9 +357,9 @@ func (req *Request) Run() (*Response, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return esResp, err
|
return esResp, err
|
||||||
}
|
}
|
||||||
json.Unmarshal(body, &esResp.Raw)
|
err = json.Unmarshal(body, &esResp.Raw)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return &Response{Status: statusCode}, err
|
return esResp, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user