aboutsummaryrefslogtreecommitdiff
path: root/ssh_handle_receive_pack.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-22 13:17:55 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-22 13:32:35 +0800
commit7a6f71ac73b41a38e9982bea3d46a87c327bd77a (patch)
tree92d5b637f57080af40c2f42834282df58a4e21a3 /ssh_handle_receive_pack.go
parentfedauth: Use NewRequestWithContext (diff)
downloadforge-7a6f71ac73b41a38e9982bea3d46a87c327bd77a.tar.gz
forge-7a6f71ac73b41a38e9982bea3d46a87c327bd77a.tar.zst
forge-7a6f71ac73b41a38e9982bea3d46a87c327bd77a.zip
Initial linting
Diffstat (limited to 'ssh_handle_receive_pack.go')
-rw-r--r--ssh_handle_receive_pack.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/ssh_handle_receive_pack.go b/ssh_handle_receive_pack.go
index ed1f765..e42bca4 100644
--- a/ssh_handle_receive_pack.go
+++ b/ssh_handle_receive_pack.go
@@ -124,9 +124,7 @@ func sshHandleRecvPack(session gliderSSH.Session, pubkey, repoIdentifier string)
}
err = proc.Wait()
- if exitError, ok := err.(*exec.ExitError); ok {
- fmt.Fprintln(session.Stderr(), "Process exited with error", exitError.ExitCode())
- } else if err != nil {
+ if err != nil {
fmt.Fprintln(session.Stderr(), "Error while waiting for process:", err)
}