diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-22 13:17:55 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-22 13:32:35 +0800 |
commit | 7a6f71ac73b41a38e9982bea3d46a87c327bd77a (patch) | |
tree | 92d5b637f57080af40c2f42834282df58a4e21a3 /ssh_handle_upload_pack.go | |
parent | fedauth: Use NewRequestWithContext (diff) | |
download | forge-7a6f71ac73b41a38e9982bea3d46a87c327bd77a.tar.gz forge-7a6f71ac73b41a38e9982bea3d46a87c327bd77a.tar.zst forge-7a6f71ac73b41a38e9982bea3d46a87c327bd77a.zip |
Initial linting
Diffstat (limited to 'ssh_handle_upload_pack.go')
-rw-r--r-- | ssh_handle_upload_pack.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ssh_handle_upload_pack.go b/ssh_handle_upload_pack.go index ab62533..f0edee2 100644 --- a/ssh_handle_upload_pack.go +++ b/ssh_handle_upload_pack.go @@ -31,9 +31,7 @@ func sshHandleUploadPack(session glider_ssh.Session, pubkey, repoIdentifier stri } 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) } |