Skip to content

Commit

Permalink
Minor syntax fixes (#1994)
Browse files Browse the repository at this point in the history
  • Loading branch information
sivchari committed Jan 24, 2022
1 parent eb371a9 commit f3865f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion echo.go
Expand Up @@ -654,7 +654,7 @@ func (e *Echo) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// Acquire context
c := e.pool.Get().(*context)
c.Reset(r, w)
h := NotFoundHandler
var h func(Context) error

if e.premiddleware == nil {
e.findRouter(r.Host).Find(r.Method, GetPath(r), c)
Expand Down
2 changes: 0 additions & 2 deletions router.go
Expand Up @@ -624,6 +624,4 @@ func (r *Router) Find(method, path string, c Context) {
}
ctx.path = currentNode.ppath
ctx.pnames = currentNode.pnames

return
}

0 comments on commit f3865f9

Please sign in to comment.