From 2a086bbc654305ab445d7ed4b32fe8760b170403 Mon Sep 17 00:00:00 2001 From: dinever Date: Fri, 24 Feb 2017 11:28:06 -0500 Subject: [PATCH] [other] gofmt --- router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router.go b/router.go index 0cfeabd..4fa3af5 100644 --- a/router.go +++ b/router.go @@ -90,11 +90,11 @@ func (router *router) AddRoute(method string, path string, handler HandlerFunc) rootNode.addRoute(parts, names, handler) if path == "/" { - } else if path[len(path) - 1] != '/' { + } else if path[len(path)-1] != '/' { parts, names := splitURLPath(path + "/") rootNode.addRoute(parts, names, handler) } else { - parts, names := splitURLPath(path[:len(path) - 1]) + parts, names := splitURLPath(path[:len(path)-1]) rootNode.addRoute(parts, names, handler) } rootNode.optimizeRoutes()