go fmt
This commit is contained in:
parent
ebf3324c90
commit
fd03304d0b
16
goes.go
16
goes.go
@ -345,14 +345,14 @@ func (req *Request) Run() (Response, error) {
|
||||
}
|
||||
|
||||
esResp := new(Response)
|
||||
if req.method == "HEAD" {
|
||||
esResp.Status = uint64(resp.StatusCode)
|
||||
} else {
|
||||
err = json.Unmarshal(body, &esResp)
|
||||
if err != nil {
|
||||
return Response{}, err
|
||||
}
|
||||
}
|
||||
if req.method == "HEAD" {
|
||||
esResp.Status = uint64(resp.StatusCode)
|
||||
} else {
|
||||
err = json.Unmarshal(body, &esResp)
|
||||
if err != nil {
|
||||
return Response{}, err
|
||||
}
|
||||
}
|
||||
|
||||
if req.api == "_bulk" && esResp.Errors {
|
||||
for _, item := range esResp.Items {
|
||||
|
Loading…
Reference in New Issue
Block a user