aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_index.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-22 13:44:03 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-22 13:44:03 +0800
commit99fd8a9cf96a51fcd9e50445cb035cc9ecd012de (patch)
tree077812874d2650216549048524886059391b5d45 /http_handle_repo_index.go
parentInitial linting (diff)
downloadforge-99fd8a9cf96a51fcd9e50445cb035cc9ecd012de.tar.gz
forge-99fd8a9cf96a51fcd9e50445cb035cc9ecd012de.tar.zst
forge-99fd8a9cf96a51fcd9e50445cb035cc9ecd012de.zip
Variable name lengths
Diffstat (limited to 'http_handle_repo_index.go')
-rw-r--r--http_handle_repo_index.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_repo_index.go b/http_handle_repo_index.go
index df1ee5e..7dc7826 100644
--- a/http_handle_repo_index.go
+++ b/http_handle_repo_index.go
@@ -14,7 +14,7 @@ import (
"github.com/go-git/go-git/v5/plumbing/storer"
)
-func httpHandleRepoIndex(w http.ResponseWriter, _ *http.Request, params map[string]any) {
+func httpHandleRepoIndex(writer http.ResponseWriter, _ *http.Request, params map[string]any) {
var repo *git.Repository
var repoName string
var groupPath []string
@@ -73,5 +73,5 @@ no_ref:
params["ssh_clone_url"] = genSSHRemoteURL(groupPath, repoName)
params["notes"] = notes
- renderTemplate(w, "repo_index", params)
+ renderTemplate(writer, "repo_index", params)
}