aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-14 09:21:36 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-14 09:21:36 +0800
commit558b32690c9482928bbb05bb500f1ea1df0088c9 (patch)
treedd7e7a40c89bd1cdcbd8afb13f8b6268e64b9bfe
parentREADME.md: Justify the subgroup syntax (diff)
downloadforge-558b32690c9482928bbb05bb500f1ea1df0088c9.tar.gz
forge-558b32690c9482928bbb05bb500f1ea1df0088c9.tar.zst
forge-558b32690c9482928bbb05bb500f1ea1df0088c9.zip
http_handle_*.go: Remove redundant return statements
-rw-r--r--http_handle_repo_commit.go1
-rw-r--r--http_handle_repo_index.go1
-rw-r--r--http_handle_repo_log.go1
3 files changed, 0 insertions, 3 deletions
diff --git a/http_handle_repo_commit.go b/http_handle_repo_commit.go
index 2732b4e..d4956d1 100644
--- a/http_handle_repo_commit.go
+++ b/http_handle_repo_commit.go
@@ -80,7 +80,6 @@ func handle_repo_commit(w http.ResponseWriter, r *http.Request, params map[strin
params["file_patches"] = usable_file_patches
render_template(w, "repo_commit", params)
- return
}
type fake_diff_file struct {
diff --git a/http_handle_repo_index.go b/http_handle_repo_index.go
index 890c5c7..4eb2c97 100644
--- a/http_handle_repo_index.go
+++ b/http_handle_repo_index.go
@@ -41,5 +41,4 @@ func handle_repo_index(w http.ResponseWriter, r *http.Request, params map[string
params["clone_url"] = generate_ssh_remote_url(group_name, repo_name)
render_template(w, "repo_index", params)
- return
}
diff --git a/http_handle_repo_log.go b/http_handle_repo_log.go
index 7fec91d..b37923b 100644
--- a/http_handle_repo_log.go
+++ b/http_handle_repo_log.go
@@ -29,5 +29,4 @@ func handle_repo_log(w http.ResponseWriter, r *http.Request, params map[string]a
params["commits"] = commits
render_template(w, "repo_log", params)
- return
}