aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-19 16:31:01 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-19 16:31:01 +0800
commit1daaf7736a315228eb495fe9f08863a6a0f7b2a1 (patch)
tree3311f02774d9cca89047d9d2db07e225bf906d0f
parenthooks: Reject non-FF contrib pushes for now (diff)
downloadforge-1daaf7736a315228eb495fe9f08863a6a0f7b2a1.tar.gz
forge-1daaf7736a315228eb495fe9f08863a6a0f7b2a1.tar.zst
forge-1daaf7736a315228eb495fe9f08863a6a0f7b2a1.zip
*.go: Reformat
-rw-r--r--http_handle_repo_commit.go1
-rw-r--r--http_server.go4
2 files changed, 2 insertions, 3 deletions
diff --git a/http_handle_repo_commit.go b/http_handle_repo_commit.go
index 25802ed..0e57002 100644
--- a/http_handle_repo_commit.go
+++ b/http_handle_repo_commit.go
@@ -123,4 +123,3 @@ func make_usable_file_patches(patch diff.Patch) (usable_file_patches []usable_fi
}
return
}
-
diff --git a/http_server.go b/http_server.go
index c762758..9c06ab0 100644
--- a/http_server.go
+++ b/http_server.go
@@ -197,9 +197,9 @@ func (router *http_router_t) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
switch non_empty_last_segments_len {
- case separator_index+4:
+ case separator_index + 4:
handle_repo_contrib_index(w, r, params)
- case separator_index+5:
+ case separator_index + 5:
params["mr_id"] = segments[separator_index+4]
handle_repo_contrib_one(w, r, params)
default: