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

правки по ПР: убраны лишние условия

parent 1998266b
No related branches found
No related tags found
No related merge requests found
...@@ -87,10 +87,8 @@ func (srv *Server) Action(ctx context.Context, in *pb.ActionRequest) (*pb.Action ...@@ -87,10 +87,8 @@ func (srv *Server) Action(ctx context.Context, in *pb.ActionRequest) (*pb.Action
if err != nil { if err != nil {
return nil, err return nil, err
} }
if actionURL.Scheme == "grpc" {
ext = actionURL.Extension() ext = actionURL.Extension()
} }
}
svc, ok := srv.services[ext] svc, ok := srv.services[ext]
if !ok { if !ok {
......
...@@ -162,10 +162,8 @@ func (s *Extension) Action(ctx context.Context, in *extension.ActionRequest) (*e ...@@ -162,10 +162,8 @@ func (s *Extension) Action(ctx context.Context, in *extension.ActionRequest) (*e
if err != nil { if err != nil {
return nil, err return nil, err
} }
if actionURL.Scheme == "grpc" {
ext = actionURL.Extension() ext = actionURL.Extension()
} }
}
ok, err := extension.CheckInstalled(ctx, s.Content, in.SpaceId, in.EnvId, ext) ok, err := extension.CheckInstalled(ctx, s.Content, in.SpaceId, in.EnvId, ext)
if err != nil { if err != nil {
return nil, errors.Wrap(err, "check extension installed") return nil, errors.Wrap(err, "check extension installed")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment