diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-19 19:00:51 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-19 19:00:51 +0800 |
commit | 7a3cf8595ade7d43a10e92fd428aa8786e50e909 (patch) | |
tree | 13ad9b9766aef9d5cefafda53c04daebb99a4628 /git_hooks_handle.go | |
parent | ssh/recv: Remove unused err_unauthorized_push (diff) | |
download | forge-7a3cf8595ade7d43a10e92fd428aa8786e50e909.tar.gz forge-7a3cf8595ade7d43a10e92fd428aa8786e50e909.tar.zst forge-7a3cf8595ade7d43a10e92fd428aa8786e50e909.zip |
hooks: Ignore error value of the last conn.Write()
Diffstat (limited to 'git_hooks_handle.go')
-rw-r--r-- | git_hooks_handle.go | 2 |
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 { |