From 85c10776d45ef5746405f4e6546e29674d422521 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Mar 2025 12:24:59 +0800 Subject: Remove underscores from Go code, pt 6 --- ssh_handle_receive_pack.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ssh_handle_receive_pack.go') diff --git a/ssh_handle_receive_pack.go b/ssh_handle_receive_pack.go index 81e94bc..ed1f765 100644 --- a/ssh_handle_receive_pack.go +++ b/ssh_handle_receive_pack.go @@ -60,17 +60,17 @@ func sshHandleRecvPack(session gliderSSH.Session, pubkey, repoIdentifier string) switch contribReq { case "closed": if !directAccess { - return errors.New("you need direct access to push to this repo.") + return errors.New("you need direct access to push to this repo") } case "registered_user": if userType != "registered" { - return errors.New("you need to be a registered user to push to this repo.") + return errors.New("you need to be a registered user to push to this repo") } case "ssh_pubkey": fallthrough case "federated": if pubkey == "" { - return errors.New("you need to have an SSH public key to push to this repo.") + return errors.New("you need to have an SSH public key to push to this repo") } if userType == "" { userID, err = addUserSSH(session.Context(), pubkey) -- cgit v1.2.3