From dd95e2dbfad7f39060dc70f145d0e1478770e454 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 18 Feb 2025 10:23:44 +0800 Subject: *.go: Add some comments for docs --- ssh_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ssh_utils.go') diff --git a/ssh_utils.go b/ssh_utils.go index cf96b21..61fdf33 100644 --- a/ssh_utils.go +++ b/ssh_utils.go @@ -9,7 +9,7 @@ import ( var err_ssh_illegal_endpoint = errors.New("Illegal endpoint during SSH access") -func get_repo_path_perms_from_ssh_path_pubkey(ctx context.Context, ssh_path string, ssh_pubkey string) (repo_path string, access bool, err error) { +func get_repo_path_perms_from_ssh_path_pubkey(ctx context.Context, ssh_path string, ssh_pubkey string) (repo_path string, direct_access bool, err error) { segments := strings.Split(strings.TrimPrefix(ssh_path, "/"), "/") for i, segment := range segments { -- cgit v1.2.3