From 5c08292e4ee388c1c5ca5291c601d50b2b3374e7 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Fri, 3 Apr 2020 22:51:30 +0800 Subject: [PATCH] style: Correct the confused logic (#2577) --- workflow/executor/resource.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflow/executor/resource.go b/workflow/executor/resource.go index 9f4e5c1fea28..831c8b8cc537 100644 --- a/workflow/executor/resource.go +++ b/workflow/executor/resource.go @@ -143,9 +143,10 @@ func (we *WorkflowExecutor) WaitResource(resourceNamespace string, resourceName } else { log.Warnf("Waiting for resource %s resulted in error %v", resourceName, err) } + return err } - return err + return nil } func checkIfResourceDeleted(resourceName string, resourceNamespace string) bool {