Skip to content

Commit

Permalink
Remove len check
Browse files Browse the repository at this point in the history
  • Loading branch information
khrm authored Jul 4, 2024
1 parent 2e986fa commit 26669fe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/apis/pipeline/v1/pipeline_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -818,9 +818,6 @@ func validateMatrixedPipelineTaskConsumed(expressions []string, taskMapping map[
for _, expression := range expressions {
// ie. "tasks.<pipelineTaskName>.results.<resultName>[*]"
subExpressions := strings.Split(expression, ".")
if len(subExpressions) < 2 {
continue
}
pipelineTask := subExpressions[1] // pipelineTaskName
taskConsumed := taskMapping[pipelineTask]
if taskConsumed.IsMatrixed() {
Expand Down

0 comments on commit 26669fe

Please sign in to comment.