diff --git a/handler.go b/handler.go index 40facf079..99695ee7e 100644 --- a/handler.go +++ b/handler.go @@ -1659,7 +1659,7 @@ func (h *Handler) handlePostInput(w http.ResponseWriter, r *http.Request) { } } } - if err := json.NewEncoder(w).Encode(postInputDefinitionResponse{}); err != nil { + if err := json.NewEncoder(w).Encode(defaultInputDefinitionResponse{}); err != nil { h.logger().Printf("response encoding error: %s", err) } } diff --git a/input_definition.go b/input_definition.go index f9de32c87..bef566416 100644 --- a/input_definition.go +++ b/input_definition.go @@ -253,13 +253,6 @@ func convert(x *uint64) uint64 { return 0 } -func convert(x *uint64) uint64 { - if x != nil { - return *x - } - return 0 -} - // InputFrame defines the frame used in the input definition. type InputFrame struct { Name string `json:"name,omitempty"`