mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-29 06:49:05 +08:00
remove unnecessary else
This commit is contained in:
@@ -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:], "/")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user