Skip to content

Commit f3865f9

Browse files
authored
Minor syntax fixes (#1994)
1 parent eb371a9 commit f3865f9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

echo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ func (e *Echo) ServeHTTP(w http.ResponseWriter, r *http.Request) {
654654
// Acquire context
655655
c := e.pool.Get().(*context)
656656
c.Reset(r, w)
657-
h := NotFoundHandler
657+
var h func(Context) error
658658

659659
if e.premiddleware == nil {
660660
e.findRouter(r.Host).Find(r.Method, GetPath(r), c)

router.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,4 @@ func (r *Router) Find(method, path string, c Context) {
624624
}
625625
ctx.path = currentNode.ppath
626626
ctx.pnames = currentNode.pnames
627-
628-
return
629627
}

0 commit comments

Comments
 (0)