From 1c05c1827f889fb538a740c630eb0bc1caf745e6 Mon Sep 17 00:00:00 2001
From: ko_oler <kooler89@gmail.com>
Date: Wed, 27 Sep 2023 12:36:30 +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 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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