Skip to content

Commit

Permalink
Update pkg/apis/pipeline/v1beta1/result_types.go
Browse files Browse the repository at this point in the history
Co-authored-by: Dibyo Mukherjee <[email protected]>
  • Loading branch information
Yongxuanzhang and dibyom authored Jul 4, 2022
1 parent 1b3a83f commit f89c355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/pipeline/v1beta1/result_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const (
// AllResultsTypes can be used for ResultsTypes validation.
var AllResultsTypes = []ResultsType{ResultsTypeString, ResultsTypeArray, ResultsTypeObject}

// ResultsArrayReference returns the reference of the result. e.g. results.resultname[*] from $(results.resultname[*])
// ResultsArrayReference returns the reference of the result. e.g. results.resultname from $(results.resultname[*])
func ResultsArrayReference(a string) string {
return strings.TrimSuffix(strings.TrimSuffix(strings.TrimPrefix(a, "$("), ")"), "[*]")
}

0 comments on commit f89c355

Please sign in to comment.