diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-19 12:24:59 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-19 12:24:59 +0800 |
commit | 85c10776d45ef5746405f4e6546e29674d422521 (patch) | |
tree | 3effd8e5550fe132958a341d4e9e9947af5e609a /http_handle_repo_index.go | |
parent | Remove underscores from Go code, pt 6 (diff) | |
download | forge-85c10776d45ef5746405f4e6546e29674d422521.tar.gz forge-85c10776d45ef5746405f4e6546e29674d422521.tar.zst forge-85c10776d45ef5746405f4e6546e29674d422521.zip |
Remove underscores from Go code, pt 6
Diffstat (limited to '')
-rw-r--r-- | http_handle_repo_index.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http_handle_repo_index.go b/http_handle_repo_index.go index 0eab027..cb3fcdc 100644 --- a/http_handle_repo_index.go +++ b/http_handle_repo_index.go @@ -39,7 +39,7 @@ func httpHandleRepoIndex(w http.ResponseWriter, r *http.Request, params map[stri branchesIter, err = repo.Branches() if err == nil { - branchesIter.ForEach(func(branch *plumbing.Reference) error { + _ = branchesIter.ForEach(func(branch *plumbing.Reference) error { branches = append(branches, branch.Name().Short()) return nil }) |