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) }