aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_index.go
diff options
context:
space:
mode:
Diffstat (limited to 'http_handle_repo_index.go')
-rw-r--r--http_handle_repo_index.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/http_handle_repo_index.go b/http_handle_repo_index.go
index ea1854e..890c5c7 100644
--- a/http_handle_repo_index.go
+++ b/http_handle_repo_index.go
@@ -40,9 +40,6 @@ func handle_repo_index(w http.ResponseWriter, r *http.Request, params map[string
params["clone_url"] = generate_ssh_remote_url(group_name, repo_name)
- err = templates.ExecuteTemplate(w, "repo_index", params)
- if err != nil {
- http.Error(w, "Error rendering template: "+err.Error(), http.StatusInternalServerError)
- return
- }
+ render_template(w, "repo_index", params)
+ return
}