From 1daaf7736a315228eb495fe9f08863a6a0f7b2a1 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Feb 2025 16:31:01 +0800 Subject: *.go: Reformat --- http_handle_repo_commit.go | 1 - http_server.go | 4 ++-- 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: -- cgit v1.2.3