aboutsummaryrefslogtreecommitdiff
path: root/http_handle_group_index.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-13 10:29:57 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-13 10:31:31 +0800
commitac956e5521b4ad1cce1f978cc1aef51e6aeb9480 (patch)
tree75a907b803a83452a5e0e8f5315458fa302059e8 /http_handle_group_index.go
parentdatabase.go: query_list[T any] (diff)
downloadforge-ac956e5521b4ad1cce1f978cc1aef51e6aeb9480.tar.gz
forge-ac956e5521b4ad1cce1f978cc1aef51e6aeb9480.tar.zst
forge-ac956e5521b4ad1cce1f978cc1aef51e6aeb9480.zip
index: Reformat the page
Diffstat (limited to 'http_handle_group_index.go')
-rw-r--r--http_handle_group_index.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/http_handle_group_index.go b/http_handle_group_index.go
index 834c0da..c694914 100644
--- a/http_handle_group_index.go
+++ b/http_handle_group_index.go
@@ -9,8 +9,8 @@ func handle_group_repos(w http.ResponseWriter, r *http.Request, params map[strin
names, err := query_list[string](r.Context(), "SELECT r.name FROM repos r JOIN groups g ON r.group_id = g.id WHERE g.name = $1;", group_name)
if err != nil {
- http.Error(w, "Error getting groups:: "+err.Error(), http.StatusInternalServerError)
- return
+ http.Error(w, "Error getting groups:: "+err.Error(), http.StatusInternalServerError)
+ return
}
params["repos"] = names