From fd03304d0bd62a453c80dcad9173473a404a46a8 Mon Sep 17 00:00:00 2001 From: Marin Bek Date: Tue, 11 Nov 2014 15:39:36 +0100 Subject: [PATCH] go fmt --- goes.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/goes.go b/goes.go index 1cf3b38..b162306 100644 --- a/goes.go +++ b/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 {