From 0c0062b22ff4ddac9cf8c4ef84116eddba99bce2 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 5 Apr 2025 23:59:17 +0800 Subject: templates shall no longer be a global variable --- http_handle_branches.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http_handle_branches.go') diff --git a/http_handle_branches.go b/http_handle_branches.go index 659287f..7709d4e 100644 --- a/http_handle_branches.go +++ b/http_handle_branches.go @@ -42,5 +42,5 @@ func (s *Server) httpHandleRepoBranches(writer http.ResponseWriter, _ *http.Requ params["ssh_clone_url"] = s.genSSHRemoteURL(groupPath, repoName) params["notes"] = notes - renderTemplate(writer, "repo_branches", params) + s.renderTemplate(writer, "repo_branches", params) } -- cgit v1.2.3