From 395985d101f464254de40f66dff1d4519429087f Mon Sep 17 00:00:00 2001 From: Sevki Date: Mon, 19 Feb 2018 22:29:44 +0100 Subject: [PATCH] godoc: fix copy&paste line --- godoc/godoc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/godoc/godoc.go b/godoc/godoc.go index 0629b83..6741a3e 100644 --- a/godoc/godoc.go +++ b/godoc/godoc.go @@ -56,7 +56,7 @@ func Redirect(vcs, importPath, repoPath string) http.Handler { if strings.HasSuffix(importPath, "/*") && strings.HasSuffix(repoPath, "/*") { wildcard = true importPath = strings.TrimSuffix(importPath, "/*") - repoPath = strings.TrimSuffix(importPath, "/*") + repoPath = strings.TrimSuffix(repoPath, "/*") } return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {