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 Dec 1, 2017
1 parent e3b60af commit d26abab
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 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,7 +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) {
spew.Dump(h(r))
return h(r).Result()
}
}

0 comments on commit d26abab

Please sign in to comment.