From cccf160d377e064605a014f6ca130acb323d1e6e Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Tue, 23 Oct 2018 16:57:58 +0100 Subject: [PATCH] Removed spaces --- domain/document/store.go | 4 ---- domain/section/github/github.go | 1 - domain/section/trello/trello.go | 1 - domain/setting/endpoint.go | 3 --- 4 files changed, 9 deletions(-) diff --git a/domain/document/store.go b/domain/document/store.go index 6187037c..5a0bb271 100644 --- a/domain/document/store.go +++ b/domain/document/store.go @@ -60,10 +60,6 @@ func (s Store) Get(ctx domain.RequestContext, id string) (document doc.Document, WHERE c_orgid=? AND c_refid=?`), ctx.OrgID, id) - if err != nil { - err = errors.Wrap(err, "execute select document") - } - return } diff --git a/domain/section/github/github.go b/domain/section/github/github.go index 7e83dc48..ac010daf 100644 --- a/domain/section/github/github.go +++ b/domain/section/github/github.go @@ -76,7 +76,6 @@ func (p *Provider) Command(ctx *provider.Context, w http.ResponseWriter, r *http } defer r.Body.Close() // ignore error - body, err := ioutil.ReadAll(r.Body) if err != nil { diff --git a/domain/section/trello/trello.go b/domain/section/trello/trello.go index 8cff4fbd..a13bf9f7 100644 --- a/domain/section/trello/trello.go +++ b/domain/section/trello/trello.go @@ -54,7 +54,6 @@ func (p *Provider) Command(ctx *provider.Context, w http.ResponseWriter, r *http defer r.Body.Close() body, err := ioutil.ReadAll(r.Body) - if err != nil { provider.WriteMessage(w, "trello", "Bad body") return diff --git a/domain/setting/endpoint.go b/domain/setting/endpoint.go index cd18024c..1ea230b3 100644 --- a/domain/setting/endpoint.go +++ b/domain/setting/endpoint.go @@ -72,7 +72,6 @@ func (h *Handler) SetSMTP(w http.ResponseWriter, r *http.Request) { } defer r.Body.Close() - body, err := ioutil.ReadAll(r.Body) if err != nil { response.WriteBadRequestError(w, method, err.Error()) @@ -173,7 +172,6 @@ func (h *Handler) SetLicense(w http.ResponseWriter, r *http.Request) { } defer r.Body.Close() - body, err := ioutil.ReadAll(r.Body) if err != nil { response.WriteBadRequestError(w, method, err.Error()) @@ -251,7 +249,6 @@ func (h *Handler) SetAuthConfig(w http.ResponseWriter, r *http.Request) { } defer r.Body.Close() - body, err := ioutil.ReadAll(r.Body) if err != nil { response.WriteBadRequestError(w, method, err.Error())