aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-02-19 19:00:51 +0800
committerRunxi Yu <me@runxiyu.org>2025-02-19 19:00:51 +0800
commit7a3cf8595ade7d43a10e92fd428aa8786e50e909 (patch)
tree13ad9b9766aef9d5cefafda53c04daebb99a4628
parentssh/recv: Remove unused err_unauthorized_push (diff)
downloadforge-7a3cf8595ade7d43a10e92fd428aa8786e50e909.tar.gz
forge-7a3cf8595ade7d43a10e92fd428aa8786e50e909.tar.zst
forge-7a3cf8595ade7d43a10e92fd428aa8786e50e909.zip
hooks: Ignore error value of the last conn.Write()
-rw-r--r--git_hooks_handle.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_hooks_handle.go b/git_hooks_handle.go
index b0383a2..b047eb9 100644
--- a/git_hooks_handle.go
+++ b/git_hooks_handle.go
@@ -188,7 +188,7 @@ func hooks_handle_connection(conn net.Conn) {
}
}()
- conn.Write([]byte{hook_return_value})
+ _, _ = conn.Write([]byte{hook_return_value})
}
func serve_git_hooks(listener net.Listener) error {