From f27e87f36e81cf306dc4465fe021b5800a5bdd94 Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Mon, 29 Apr 2019 13:53:12 -0700 Subject: [PATCH] Fixed golint error Signed-off-by: Vishal Rana --- echo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/echo.go b/echo.go index a0b3070e..e5410026 100644 --- a/echo.go +++ b/echo.go @@ -463,7 +463,7 @@ func (e *Echo) Static(prefix, root string) *Route { return e.static(prefix, root, e.GET) } -func (_ common) static(prefix, root string, get func(string, HandlerFunc, ...MiddlewareFunc) *Route) *Route { +func (common) static(prefix, root string, get func(string, HandlerFunc, ...MiddlewareFunc) *Route) *Route { h := func(c Context) error { p, err := url.PathUnescape(c.Param("*")) if err != nil { @@ -480,7 +480,7 @@ func (_ common) static(prefix, root string, get func(string, HandlerFunc, ...Mid return get(prefix+"/*", h) } -func (_ common) file(path, file string, get func(string, HandlerFunc, ...MiddlewareFunc) *Route, +func (common) file(path, file string, get func(string, HandlerFunc, ...MiddlewareFunc) *Route, m ...MiddlewareFunc) *Route { return get(path, func(c Context) error { return c.File(file)