Fixing double error check.

This commit is contained in:
Aleksandr Melnikov
2020-03-25 11:42:09 -07:00
parent b8c732863f
commit 4d66356c26

View File

@@ -54,9 +54,7 @@ func (c *CronWorkflowServer) CreateCronWorkflow(ctx context.Context, req *api.Cr
cwf, err := client.CreateCronWorkflow(req.Namespace, cronWorkflow)
if err != nil {
if err != nil {
return nil, err
}
return nil, err
}
return apiCronWorkflow(cwf), nil
}