Commit a2a6ec95 authored by Yongzheng Lai's avatar Yongzheng Lai

Update tree.go

go fmt
parent 1377d165
......@@ -209,7 +209,7 @@ func (t *Tree) addseg(segments []string, route interface{}, wildcards []string,
t.leaves = append(t.leaves, &leafInfo{runObject: route, wildcards: wildcards})
}
for i, v := range wildcards {
if v==":" {
if v == ":" {
t.leaves = append(t.leaves, &leafInfo{runObject: route, wildcards: wildcards[:i+1]})
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment