From 1daaf7736a315228eb495fe9f08863a6a0f7b2a1 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Feb 2025 16:31:01 +0800 Subject: [PATCH] *.go: Reformat --- http_handle_repo_commit.go | 1 - http_server.go | 4 ++-- diff --git a/http_handle_repo_commit.go b/http_handle_repo_commit.go index 25802edc4d1370a9a04e55fc0ddd5919f8ee367d..0e57002fc7bd7c57a45ba9049b55f8c831254824 100644 --- a/http_handle_repo_commit.go +++ b/http_handle_repo_commit.go @@ -123,4 +123,3 @@ usable_file_patches = append(usable_file_patches, usable_file_patch) } return } - diff --git a/http_server.go b/http_server.go index c762758263f89750ebca60328f6e0c4e53642fb1..9c06ab0eae5aada0d8508229e4a74d9065627730 100644 --- a/http_server.go +++ b/http_server.go @@ -197,9 +197,9 @@ if redirect_with_slash(w, r) { 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: -- 2.48.1