Fixing IndicesExist function

This commit is contained in:
r--w 2015-10-02 14:20:57 +02:00
parent 8fa9ff1c53
commit aa49572462

View File

@ -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 {