From 1a40569716b8331e1f5570ef07273486ff4e32c4 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Wed, 26 Feb 2025 19:30:06 -0300 Subject: [PATCH] refactor(smalltrip): rename handleRouter to handleGroup --- smalltrip/smalltrip.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smalltrip/smalltrip.go b/smalltrip/smalltrip.go index ef5fc5f..311d286 100644 --- a/smalltrip/smalltrip.go +++ b/smalltrip/smalltrip.go @@ -62,7 +62,7 @@ func (r *router) Handle(pattern string, handler http.Handler) { if router, ok := handler.(RouteGroup); ok { r.log.Debug("Route has nested router as handler, handling router's routes") - r.handleRouter(pattern, router) + r.handleGroup(pattern, router) return } @@ -108,7 +108,7 @@ func (r *router) Routes() []Route { return rs } -func (r *router) handleRouter(pattern string, group RouteGroup) { +func (r *router) handleGroup(pattern string, group RouteGroup) { r.assert.NotNil(group, "Router should not be nil, invalid state.") r.assert.NotZero(pattern, "Pattern should not be empty, invalid state.") r.assert.NotNil(r.mux)