From 4ca5db44bd3188e564f8cb86277b749140cd52fa Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Wed, 26 Feb 2025 19:30:25 -0300 Subject: [PATCH] refactor(smalltrip): remove unecessary length argument in make --- smalltrip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smalltrip.go b/smalltrip.go index 311d286..2dd0263 100644 --- a/smalltrip.go +++ b/smalltrip.go @@ -97,7 +97,7 @@ func (r *router) ServeHTTP(w http.ResponseWriter, req *http.Request) { func (r *router) Routes() []Route { r.assert.NotNil(r.routes) - rs := make([]Route, len(r.routes), len(r.routes)) + rs := make([]Route, len(r.routes)) var i int for _, v := range r.routes {