From baa60fb060be3b57b8d8b3cd42572da01e5f7554 Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Wed, 16 Mar 2016 19:29:34 +0900 Subject: [PATCH] remove unnecessary else --- check/utils.go | 2 +- handlers/home.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/check/utils.go b/check/utils.go index 5a3567c..108fff0 100644 --- a/check/utils.go +++ b/check/utils.go @@ -149,7 +149,7 @@ outer: if strings.HasPrefix(filename, "/github.com") { sp := strings.Split(filename, "/") if len(sp) > 3 { - fs.Filename = strings.Join(sp[3:len(sp)], "/") + fs.Filename = strings.Join(sp[3:], "/") } } diff --git a/handlers/home.go b/handlers/home.go index fc507b0..d601721 100644 --- a/handlers/home.go +++ b/handlers/home.go @@ -52,7 +52,7 @@ func HomeHandler(w http.ResponseWriter, r *http.Request) { t.Execute(w, map[string]interface{}{"Recent": recentRepos}) return - } else { - http.NotFound(w, r) } + + http.NotFound(w, r) }