Skip to content

Commit

Permalink
removing debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
James Yeh committed Apr 9, 2017
1 parent 4ae3275 commit 4d9819e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions swagger/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"net/http"

"github.com/NYTimes/gizmo/server"
"github.com/davecgh/go-spew/spew"
)

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

0 comments on commit 4d9819e

Please sign in to comment.