mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-21 04:29:24 +08:00
remove unneeded err check
This commit is contained in:
@@ -360,7 +360,7 @@ func (r *ResourceManager) ArchiveWorkflowTemplate(namespace, uid string) (archiv
|
||||
if err != nil {
|
||||
return false, util.NewUserError(codes.Unknown, "Unknown error.")
|
||||
}
|
||||
if err == nil && workflowTemplate == nil {
|
||||
if workflowTemplate == nil {
|
||||
return false, util.NewUserError(codes.NotFound, "Workflow template not found.")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user