diff --git a/hooks.go b/hooks.go index b13d491b98..3ea7a00014 100644 --- a/hooks.go +++ b/hooks.go @@ -94,7 +94,6 @@ func (h *hooks) executeOnRouteHooks(route Route) error { } func (h *hooks) executeOnNameHooks(route Route) error { - for _, v := range h.onName { if err := v(route); err != nil { return err