mirror of
https://github.com/documize/community.git
synced 2025-07-19 21:29:42 +02:00
Removed spaces
This commit is contained in:
parent
4b543733e7
commit
cccf160d37
4 changed files with 0 additions and 9 deletions
|
@ -60,10 +60,6 @@ func (s Store) Get(ctx domain.RequestContext, id string) (document doc.Document,
|
||||||
WHERE c_orgid=? AND c_refid=?`),
|
WHERE c_orgid=? AND c_refid=?`),
|
||||||
ctx.OrgID, id)
|
ctx.OrgID, id)
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
err = errors.Wrap(err, "execute select document")
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,6 @@ func (p *Provider) Command(ctx *provider.Context, w http.ResponseWriter, r *http
|
||||||
}
|
}
|
||||||
|
|
||||||
defer r.Body.Close() // ignore error
|
defer r.Body.Close() // ignore error
|
||||||
|
|
||||||
body, err := ioutil.ReadAll(r.Body)
|
body, err := ioutil.ReadAll(r.Body)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -54,7 +54,6 @@ func (p *Provider) Command(ctx *provider.Context, w http.ResponseWriter, r *http
|
||||||
|
|
||||||
defer r.Body.Close()
|
defer r.Body.Close()
|
||||||
body, err := ioutil.ReadAll(r.Body)
|
body, err := ioutil.ReadAll(r.Body)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
provider.WriteMessage(w, "trello", "Bad body")
|
provider.WriteMessage(w, "trello", "Bad body")
|
||||||
return
|
return
|
||||||
|
|
|
@ -72,7 +72,6 @@ func (h *Handler) SetSMTP(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
defer r.Body.Close()
|
defer r.Body.Close()
|
||||||
|
|
||||||
body, err := ioutil.ReadAll(r.Body)
|
body, err := ioutil.ReadAll(r.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
response.WriteBadRequestError(w, method, err.Error())
|
response.WriteBadRequestError(w, method, err.Error())
|
||||||
|
@ -173,7 +172,6 @@ func (h *Handler) SetLicense(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
defer r.Body.Close()
|
defer r.Body.Close()
|
||||||
|
|
||||||
body, err := ioutil.ReadAll(r.Body)
|
body, err := ioutil.ReadAll(r.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
response.WriteBadRequestError(w, method, err.Error())
|
response.WriteBadRequestError(w, method, err.Error())
|
||||||
|
@ -251,7 +249,6 @@ func (h *Handler) SetAuthConfig(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
defer r.Body.Close()
|
defer r.Body.Close()
|
||||||
|
|
||||||
body, err := ioutil.ReadAll(r.Body)
|
body, err := ioutil.ReadAll(r.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
response.WriteBadRequestError(w, method, err.Error())
|
response.WriteBadRequestError(w, method, err.Error())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue