Skip to content

Commit 4d9819e

Browse files
author
James Yeh
committed
removing debug code
1 parent 4ae3275 commit 4d9819e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

swagger/handler.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"net/http"
55

66
"github.com/NYTimes/gizmo/server"
7-
"github.com/davecgh/go-spew/spew"
87
)
98

109
// GizmoJSONResponse represents a response type that can be converted to
@@ -21,8 +20,6 @@ type Handler func(*http.Request) GizmoJSONResponse
2120
// HandlerToJSONEndpoint converts a handler to a proper Gizmo JSONEndpoint.
2221
func HandlerToJSONEndpoint(h Handler) server.JSONEndpoint {
2322
return func(r *http.Request) (int, interface{}, error) {
24-
a, b, c := h(r).Result()
25-
spew.Dump(b)
26-
return a, b, c
23+
return h(r).Result()
2724
}
2825
}

0 commit comments

Comments
 (0)