diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-19 12:06:54 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-19 12:06:54 +0800 |
commit | 87b1ab519c77816d1c68a691e70137bd6f1c234b (patch) | |
tree | ca4b1a6f057138aed716caecce69571915da1b2c /http_handle_repo_log.go | |
parent | Remove old style guide (diff) | |
download | forge-87b1ab519c77816d1c68a691e70137bd6f1c234b.tar.gz forge-87b1ab519c77816d1c68a691e70137bd6f1c234b.tar.zst forge-87b1ab519c77816d1c68a691e70137bd6f1c234b.zip |
Remove underscores from Go code, pt 5
Diffstat (limited to '')
-rw-r--r-- | http_handle_repo_log.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/http_handle_repo_log.go b/http_handle_repo_log.go index 2c27b03..39be231 100644 --- a/http_handle_repo_log.go +++ b/http_handle_repo_log.go @@ -14,18 +14,18 @@ import ( // TODO: I probably shouldn't include *all* commits here... func httpHandleRepoLog(w http.ResponseWriter, r *http.Request, params map[string]any) { var repo *git.Repository - var ref_hash plumbing.Hash + var refHash plumbing.Hash var err error var commits []*object.Commit repo = params["repo"].(*git.Repository) - if ref_hash, err = getRefHash(repo, params["ref_type"].(string), params["ref_name"].(string)); err != nil { + if refHash, err = getRefHash(repo, params["ref_type"].(string), params["ref_name"].(string)); err != nil { http.Error(w, "Error getting ref hash: "+err.Error(), http.StatusInternalServerError) return } - if commits, err = getRecentCommits(repo, ref_hash, -1); err != nil { + if commits, err = getRecentCommits(repo, refHash, -1); err != nil { http.Error(w, "Error getting recent commits: "+err.Error(), http.StatusInternalServerError) return } |