From 7a6f71ac73b41a38e9982bea3d46a87c327bd77a Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 22 Mar 2025 13:17:55 +0800 Subject: Initial linting --- ssh_handle_upload_pack.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ssh_handle_upload_pack.go') 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) } -- cgit v1.2.3