Skip to content

Commit

Permalink
fix: pipelines remover always returned (empty) error
Browse files Browse the repository at this point in the history
  • Loading branch information
lkingland committed May 8, 2024
1 parent d6a1467 commit e677216
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/pipelines/tekton/pipelines_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,10 @@ func (pp *PipelinesProvider) removeClusterResources(ctx context.Context, f fn.Fu
}
errMsg += fmt.Sprintf("\n %v", e)
}

return errors.New(errMsg)
if errMsg != "" {
return errors.New(errMsg)
}
return nil
}

// watchPipelineRunProgress watches the progress of the input PipelineRun
Expand Down

0 comments on commit e677216

Please sign in to comment.