1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-15 01:34:53 +02:00

[FIX] Cleanup code (#1061)

Code cleanup
This commit is contained in:
Evgeniy Kulikov
2018-02-21 21:44:17 +03:00
committed by Vishal Rana
parent 90d675fa2a
commit f49d166e6f
19 changed files with 141 additions and 65 deletions

View File

@ -59,8 +59,8 @@ func (r *Router) Add(method, path string, h HandlerFunc) {
if path[0] != '/' {
path = "/" + path
}
ppath := path // Pristine path
pnames := []string{} // Param names
ppath := path // Pristine path
var pnames []string // Param names
for i, l := 0, len(path); i < l; i++ {
if path[i] == ':' {