Skip to content

Commit

Permalink
fix ineffectual assignment to recentRepos
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsagu authored and shawnps committed Dec 25, 2023
1 parent d191d67 commit 2b18dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++
Expand Down

0 comments on commit 2b18dde

Please sign in to comment.