fix(http): unswallow json decoder error (#1248)
* fix(http): unswallow json decoder error * make fmtpull/10616/head
parent
5a8dd6bfef
commit
79bb8af889
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue