From db3b188ab97113a086158a7f0bb32371320a5ff4 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 27 Jan 2020 17:13:47 +0800 Subject: [PATCH] tree: remove duplicate assignment copy from https://github.com/julienschmidt/httprouter/commit/cfa3cb764b4fc4eb98cae67a2020a91c79e065be --- tree.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/tree.go b/tree.go index 89f74deb..6335b52a 100644 --- a/tree.go +++ b/tree.go @@ -464,7 +464,6 @@ walk: // Outer loop for walking the tree for i, max := 0, len(indices); i < max; i++ { if c == indices[i] { n = n.children[i] - prefix = n.path continue walk } } @@ -508,7 +507,6 @@ walk: // Outer loop for walking the tree if len(n.children) > 0 { path = path[end:] n = n.children[0] - prefix = n.path continue walk }