Skip to content
Snippets Groups Projects
Commit 1c05c182 authored by ko_oler's avatar ko_oler
Browse files

правки по ПР

parent 46a6b2c8
Branches
Tags
No related merge requests found
...@@ -28,8 +28,7 @@ func NewURL(action string) (*URL, error) { ...@@ -28,8 +28,7 @@ func NewURL(action string) (*URL, error) {
return nil, err return nil, err
} }
if actionURL.URL.Scheme == "grpc" { if actionURL.URL.Scheme == "grpc" {
path := strings.TrimLeft(actionURL.Path, "/") splitPath := strings.Split(strings.TrimLeft(actionURL.Path, "/"), "/")
splitPath := strings.Split(path, "/")
if len(splitPath) < 2 { if len(splitPath) < 2 {
return nil, errors.Errorf("incorrect action URL, no action id: '%s'", action) return nil, errors.Errorf("incorrect action URL, no action id: '%s'", action)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment