-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change signature on GetOwnerReference
A small refactoring of PipelineRun function. Change signature so it corresponds with the name. From: func (pr *PipelineRun) GetOwnerReference() []metav1.OwnerReference To: func (pr *PipelineRun) GetOwnerReference() metav1.OwnerReference This signature change leads to more _idiomatic code_ and avoids code like: pr.GetOwnerReference()[0] to be replaced with: pr.GetOwnerReference() This is a small Go function API change, but it does not change the type structure API (e.g. Yaml). Code that before this change used pr.GetOwnerReference() need to change the function call to []metav1.OwnerReference{pr.GetOwnerReference()}
- Loading branch information
1 parent
5d9c881
commit dc0a8b9
Showing
5 changed files
with
10 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters