refactor(smalltrip): remove unecessary length argument in make

This commit is contained in:
Guz
2025-02-26 19:30:25 -03:00
parent 1a40569716
commit 645690b7f8

View File

@@ -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 {