aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_commit.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-15 10:23:08 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-15 10:23:08 +0800
commit3aae548374b0ca19b9e14c30a1ca6790251cc1db (patch)
treeef6b63bf7e8ed959a665213683d44e08287d30f5 /http_handle_repo_commit.go
parent{http_server,url}.go: Fix redirects (diff)
downloadforge-3aae548374b0ca19b9e14c30a1ca6790251cc1db.tar.gz
forge-3aae548374b0ca19b9e14c30a1ca6790251cc1db.tar.zst
forge-3aae548374b0ca19b9e14c30a1ca6790251cc1db.zip
*.go: Reformat
Diffstat (limited to 'http_handle_repo_commit.go')
-rw-r--r--http_handle_repo_commit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http_handle_repo_commit.go b/http_handle_repo_commit.go
index 8e5cdbf..0eb6bb4 100644
--- a/http_handle_repo_commit.go
+++ b/http_handle_repo_commit.go
@@ -76,7 +76,7 @@ func handle_repo_commit(w http.ResponseWriter, r *http.Request, params map[strin
to = fake_diff_file_null
}
chunks := []usable_chunk{}
- for _, chunk := range file_patch.Chunks() {
+ for _, chunk := range file_patch.Chunks() {
content := chunk.Content()
if len(content) > 0 && content[0] == '\n' {
content = "\n" + content