Skip to content

Commit 2b18dde

Browse files
amatsagushawnps
authored andcommitted
fix ineffectual assignment to recentRepos
1 parent d191d67 commit 2b18dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handlers/home.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var cache struct {
1818
// HomeHandler handles the homepage
1919
func (gh *GRCHandler) HomeHandler(w http.ResponseWriter, r *http.Request, db *badger.DB) {
2020
if r.URL.Path[1:] == "" {
21-
var recentRepos = []string{}
21+
var recentRepos []string
2222

2323
cache.mux.Lock()
2424
cache.count++

0 commit comments

Comments
 (0)