aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_contrib_index.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-19 01:14:24 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-19 01:14:24 +0800
commitb311b5849594c98bd474836981e4af6b15390eae (patch)
treecd4c0e0e20385fc3c30984e469b7a6f8d704c168 /http_handle_repo_contrib_index.go
parenthttp: Fix detecting subgroups with separator_index (diff)
downloadforge-b311b5849594c98bd474836981e4af6b15390eae.tar.gz
forge-b311b5849594c98bd474836981e4af6b15390eae.tar.zst
forge-b311b5849594c98bd474836981e4af6b15390eae.zip
repo/contrib: Remove unnecessary blank assign
Diffstat (limited to 'http_handle_repo_contrib_index.go')
-rw-r--r--http_handle_repo_contrib_index.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/http_handle_repo_contrib_index.go b/http_handle_repo_contrib_index.go
index 632e8f2..0c9481f 100644
--- a/http_handle_repo_contrib_index.go
+++ b/http_handle_repo_contrib_index.go
@@ -13,8 +13,6 @@ type id_title_status_t struct {
}
func handle_repo_contrib_index(w http.ResponseWriter, r *http.Request, params map[string]any) {
- _ = params["repo"].(*git.Repository)
-
rows, err := database.Query(r.Context(), "SELECT id, title, status FROM merge_requests WHERE repo_id = $1", params["repo_id"])
if err != nil {
http.Error(w, "Error querying merge requests: "+err.Error(), http.StatusInternalServerError)