From 949ad07b281ddf349a4e2adec95191becb8aafca Mon Sep 17 00:00:00 2001 From: "kare.nuorteva" Date: Sun, 11 Dec 2016 23:33:38 +0000 Subject: [PATCH] Rename variable git-svn-id: file:///srv/svn/repo/toyohime/trunk@26 922d331f-388e-da47-97a9-ad700dc0b8b9 --- vanity.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vanity.go b/vanity.go index 0a649e6..45c2710 100644 --- a/vanity.go +++ b/vanity.go @@ -54,7 +54,7 @@ func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { return } - conf, ok := s.Config[Path(r.URL.Path)] + pack, ok := s.Config[Path(r.URL.Path)] if !ok { http.NotFound(w, r) return @@ -64,6 +64,6 @@ func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, url, http.StatusTemporaryRedirect) return } - i := fmt.Sprintf("%s%s %s %s", *s.Domain, conf.Path, conf.VCSSystem, conf.VCSURL) + i := fmt.Sprintf("%s%s %s %s", *s.Domain, pack.Path, pack.VCSSystem, pack.VCSURL) fmt.Fprintf(w, ``, i) }