diff --git a/dispatch/route.go b/dispatch/route.go index 643aa6da..4b3673c5 100644 --- a/dispatch/route.go +++ b/dispatch/route.go @@ -183,9 +183,6 @@ func (r *Route) Key() string { // Walk traverses the route tree in depth-first order. func (r *Route) Walk(visit func(*Route)) { visit(r) - if r.Routes == nil { - return - } for i := range r.Routes { r.Routes[i].Walk(visit) }