fix(http): unswallow json decoder error (#1248)

* fix(http): unswallow json decoder error

* make fmt
pull/10616/head
Jade McGough 2018-10-30 17:31:32 -07:00 committed by GitHub
parent 5a8dd6bfef
commit 79bb8af889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -164,8 +164,8 @@ func (h *TelegrafHandler) handleGetTelegraf(w http.ResponseWriter, r *http.Reque
func decodeUserResourceMappingFilter(ctx context.Context, r *http.Request) (*platform.UserResourceMappingFilter, error) {
urm := new(platform.UserResourceMappingFilter)
_ = json.NewDecoder(r.Body).Decode(urm)
return urm, nil
err := json.NewDecoder(r.Body).Decode(urm)
return urm, err
}
func decodePostTelegrafRequest(ctx context.Context, r *http.Request) (*platform.TelegrafConfig, error) {