Skip to content

Commit f27e87f

Browse files
committed
Fixed golint error
Signed-off-by: Vishal Rana <[email protected]>
1 parent 4de244c commit f27e87f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

echo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ func (e *Echo) Static(prefix, root string) *Route {
463463
return e.static(prefix, root, e.GET)
464464
}
465465

466-
func (_ common) static(prefix, root string, get func(string, HandlerFunc, ...MiddlewareFunc) *Route) *Route {
466+
func (common) static(prefix, root string, get func(string, HandlerFunc, ...MiddlewareFunc) *Route) *Route {
467467
h := func(c Context) error {
468468
p, err := url.PathUnescape(c.Param("*"))
469469
if err != nil {
@@ -480,7 +480,7 @@ func (_ common) static(prefix, root string, get func(string, HandlerFunc, ...Mid
480480
return get(prefix+"/*", h)
481481
}
482482

483-
func (_ common) file(path, file string, get func(string, HandlerFunc, ...MiddlewareFunc) *Route,
483+
func (common) file(path, file string, get func(string, HandlerFunc, ...MiddlewareFunc) *Route,
484484
m ...MiddlewareFunc) *Route {
485485
return get(path, func(c Context) error {
486486
return c.File(file)

0 commit comments

Comments
 (0)