From 3aae548374b0ca19b9e14c30a1ca6790251cc1db Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 15 Feb 2025 10:23:08 +0800 Subject: *.go: Reformat --- http_server.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'http_server.go') diff --git a/http_server.go b/http_server.go index e830fb1..ffbb711 100644 --- a/http_server.go +++ b/http_server.go @@ -122,9 +122,9 @@ func (router *http_router_t) ServeHTTP(w http.ResponseWriter, r *http.Request) { } // TODO: subgroups if non_empty_last_segments_len == separator_index+3 { - if redirect_with_slash(w, r) { - return - } + if redirect_with_slash(w, r) { + return + } handle_repo_index(w, r, params) return } @@ -135,7 +135,7 @@ func (router *http_router_t) ServeHTTP(w http.ResponseWriter, r *http.Request) { case "tree": params["rest"] = strings.Join(segments[separator_index+4:], "/") if len(segments) < separator_index+5 && redirect_with_slash(w, r) { - return + return } handle_repo_tree(w, r, params) case "raw": -- cgit v1.2.3