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

правки по ПР

parent 46a6b2c8
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment