remove unnecessary else

This commit is contained in:
Shawn Smith
2016-03-16 19:29:34 +09:00
parent e3963e3efc
commit baa60fb060
2 changed files with 3 additions and 3 deletions

View File

@@ -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:], "/")
}
}

View File

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