Fix typos and minor cleanup
This commit is contained in:
parent
9ca38d1f10
commit
4d34ea50cc
8 changed files with 10 additions and 12 deletions
|
|
@ -77,7 +77,6 @@ func (api *Api) ServeV1Query(w http.ResponseWriter, r *http.Request, params http
|
|||
default:
|
||||
return FormatJson400(w, "Need a query language.")
|
||||
}
|
||||
var err error
|
||||
bodyBytes, err := ioutil.ReadAll(r.Body)
|
||||
if err != nil {
|
||||
return FormatJson400(w, err)
|
||||
|
|
@ -126,7 +125,6 @@ func (api *Api) ServeV1Shape(w http.ResponseWriter, r *http.Request, params http
|
|||
default:
|
||||
return FormatJson400(w, "Need a query language.")
|
||||
}
|
||||
var err error
|
||||
bodyBytes, err := ioutil.ReadAll(r.Body)
|
||||
if err != nil {
|
||||
return FormatJson400(w, err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue