mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
fix ineffectual assignment to recentRepos
This commit is contained in:
@@ -18,7 +18,7 @@ var cache struct {
|
||||
// HomeHandler handles the homepage
|
||||
func (gh *GRCHandler) HomeHandler(w http.ResponseWriter, r *http.Request, db *badger.DB) {
|
||||
if r.URL.Path[1:] == "" {
|
||||
var recentRepos = []string{}
|
||||
var recentRepos []string
|
||||
|
||||
cache.mux.Lock()
|
||||
cache.count++
|
||||
|
||||
Reference in New Issue
Block a user