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