From 46a6b2c87582836aeec5d36907751f2b5411fe6b Mon Sep 17 00:00:00 2001
From: ko_oler <kooler89@gmail.com>
Date: Wed, 27 Sep 2023 12:35:11 +0300
Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF?=
 =?UTF-8?q?=D0=BE=20=D0=9F=D0=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pkg/action/action.go | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/pkg/action/action.go b/pkg/action/action.go
index b230fc93..0707e0db 100644
--- a/pkg/action/action.go
+++ b/pkg/action/action.go
@@ -28,10 +28,7 @@ func NewURL(action string) (*URL, error) {
 		return nil, err
 	}
 	if actionURL.URL.Scheme == "grpc" {
-		path := actionURL.Path
-		if strings.HasPrefix(actionURL.Path, "/") {
-			path = actionURL.Path[1:]
-		}
+		path := strings.TrimLeft(actionURL.Path, "/")
 		splitPath := strings.Split(path, "/")
 		if len(splitPath) < 2 {
 			return nil, errors.Errorf("incorrect action URL, no action id: '%s'", action)
-- 
GitLab