mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-04 13:22:41 +08:00
Fixing double error check.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user