mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 12:57:05 +00:00
minor
This commit is contained in:
@@ -43,7 +43,8 @@ func convertMacroTmplToNodePath(tmpl macro.Template) string {
|
||||
// if it has started with {} and it's valid
|
||||
// then the tmpl.Params will be filled,
|
||||
// so no any further check needed.
|
||||
for _, p := range tmpl.Params {
|
||||
for i := range tmpl.Params {
|
||||
p := tmpl.Params[i]
|
||||
if ast.IsTrailing(p.Type) {
|
||||
routePath = strings.Replace(routePath, p.Src, WildcardParam(p.Name), 1)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user