From f3865f9aa539c1eddd80fdb371d4712a1296bd7b Mon Sep 17 00:00:00 2001 From: sivchari Date: Mon, 24 Jan 2022 18:33:13 +0900 Subject: [PATCH] Minor syntax fixes (#1994) --- echo.go | 2 +- router.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/echo.go b/echo.go index fc7e116f..d067b896 100644 --- a/echo.go +++ b/echo.go @@ -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) diff --git a/router.go b/router.go index 1a2ce561..a1de2d6e 100644 --- a/router.go +++ b/router.go @@ -624,6 +624,4 @@ func (r *Router) Find(method, path string, c Context) { } ctx.path = currentNode.ppath ctx.pnames = currentNode.pnames - - return }