We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae3275 commit 4d9819eCopy full SHA for 4d9819e
swagger/handler.go
@@ -4,7 +4,6 @@ import (
4
"net/http"
5
6
"github.com/NYTimes/gizmo/server"
7
- "github.com/davecgh/go-spew/spew"
8
)
9
10
// GizmoJSONResponse represents a response type that can be converted to
@@ -21,8 +20,6 @@ type Handler func(*http.Request) GizmoJSONResponse
21
20
// HandlerToJSONEndpoint converts a handler to a proper Gizmo JSONEndpoint.
22
func HandlerToJSONEndpoint(h Handler) server.JSONEndpoint {
23
return func(r *http.Request) (int, interface{}, error) {
24
- a, b, c := h(r).Result()
25
- spew.Dump(b)
26
- return a, b, c
+ return h(r).Result()
27
}
28
0 commit comments