Skip to content

Commit

Permalink
refactor: Remove unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
keskad committed May 22, 2024
1 parent e26f92a commit f4b4243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/core/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func (prp *PipelineRunProvider) collectStatus(ctx context.Context, pipelineRun *
continue
}

orderedTasks[num].Status = translateTaskStatus(pipelineRun, &taskRun)
orderedTasks[num].Status = translateTaskStatus(&taskRun)
log.Debugf("TaskRun '%s' status '%s'", taskRunName, orderedTasks[num].Status)
}
return orderedTasks, nil
Expand Down Expand Up @@ -237,7 +237,7 @@ func isTaskSkipped(pipelineRun *v1.PipelineRun, taskPipelineName string) bool {
return false
}

func translateTaskStatus(pipelineRun *v1.PipelineRun, task *v1.TaskRun) contract.Status {
func translateTaskStatus(task *v1.TaskRun) contract.Status {
if task.IsCancelled() {
print("IsCancelled")
return contract.PipelineCancelled
Expand Down

0 comments on commit f4b4243

Please sign in to comment.