From f83306bb5bbf4d6bea042e571c6430b902346434 Mon Sep 17 00:00:00 2001 From: bergquist Date: Tue, 26 Jun 2018 08:46:59 +0200 Subject: [PATCH] removes unused return object --- pkg/api/routing/route_register.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/api/routing/route_register.go b/pkg/api/routing/route_register.go index 47531732564..7a054ad0a24 100644 --- a/pkg/api/routing/route_register.go +++ b/pkg/api/routing/route_register.go @@ -42,7 +42,7 @@ type RouteRegister interface { // Register iterates over all routes added to the RouteRegister // and add them to the `Router` pass as an parameter. - Register(Router) *macaron.Router + Register(Router) } type RegisterNamedMiddleware func(name string) macaron.Handler @@ -101,7 +101,7 @@ func (rr *routeRegister) Group(pattern string, fn func(rr RouteRegister), handle rr.groups = append(rr.groups, group) } -func (rr *routeRegister) Register(router Router) *macaron.Router { +func (rr *routeRegister) Register(router Router) { for _, r := range rr.routes { // GET requests have to be added to macaron routing using Get() // Otherwise HEAD requests will not be allowed. @@ -116,8 +116,6 @@ func (rr *routeRegister) Register(router Router) *macaron.Router { for _, g := range rr.groups { g.Register(router) } - - return &macaron.Router{} } func (rr *routeRegister) route(pattern, method string, handlers ...macaron.Handler) {