Skip to content

Commit

Permalink
Remove potentially incorrect debug statement
Browse files Browse the repository at this point in the history
  • Loading branch information
hoisie authored and fiber committed Feb 2, 2011
1 parent ca99f93 commit 3fa1ccd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions web.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ func (s *Server) routeHandler(req *Request, c conn) {
if requiresContext(handlerType) {
args.Push(reflect.NewValue(&ctx))
}

for _, arg := range match[1:] {
args.Push(reflect.NewValue(arg))
}
Expand All @@ -377,7 +376,6 @@ func (s *Server) routeHandler(req *Request, c conn) {
ret, err := s.safelyCall(route.handler, valArgs)
if err != nil {
//there was an error or panic while calling the handler
s.Logger.Printf("Incorrect number of arguments for %s\n", requestPath)
ctx.Abort(500, "Server Error")
}

Expand Down

0 comments on commit 3fa1ccd

Please sign in to comment.