Skip to content
Snippets Groups Projects
Commit f37da648 authored by Anton Sattarov's avatar Anton Sattarov :cucumber: Committed by Pavel Antonov
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 1233ba7e
No related branches found
No related tags found
No related merge requests found
...@@ -181,7 +181,11 @@ func (s *Extension) Action(ctx context.Context, in *extension.ActionRequest) (*e ...@@ -181,7 +181,11 @@ func (s *Extension) Action(ctx context.Context, in *extension.ActionRequest) (*e
// return nil, errors.New("extension not installed") // return nil, errors.New("extension not installed")
//} //}
if s.router == nil { if url, err := extension.NewActionURL(in.Action); s.router != nil && err == nil && url != nil && s.isCorrectExtension(ctx, url, in) {
if h, err := s.router(ctx, url, in); err == nil && h != nil {
return h(ctx, url, in)
}
}
url, err := extension.NewActionURL(in.Action) url, err := extension.NewActionURL(in.Action)
if err == nil && url != nil && s.isCorrectExtension(ctx, url, in) { if err == nil && url != nil && s.isCorrectExtension(ctx, url, in) {
if h, err := s.router(ctx, url, in); err == nil && h != nil { if h, err := s.router(ctx, url, in); err == nil && h != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment