Skip to content

Commit e677216

Browse files
committed
fix: pipelines remover always returned (empty) error
1 parent d6a1467 commit e677216

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/pipelines/tekton/pipelines_provider.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,10 @@ func (pp *PipelinesProvider) removeClusterResources(ctx context.Context, f fn.Fu
406406
}
407407
errMsg += fmt.Sprintf("\n %v", e)
408408
}
409-
410-
return errors.New(errMsg)
409+
if errMsg != "" {
410+
return errors.New(errMsg)
411+
}
412+
return nil
411413
}
412414

413415
// watchPipelineRunProgress watches the progress of the input PipelineRun

0 commit comments

Comments
 (0)