mirror of https://github.com/knative/pkg.git
Fix comment to ensure we tell the truth to the world (#1601)
* Make sure GetCondition actually returns the condition otherwise we return the temp object that loop variable points at. * comment * fix * meh * update
This commit is contained in:
parent
20e1d27cd6
commit
473bba04ee
|
|
@ -74,7 +74,7 @@ func (*Conditions) GetFullType() ducktypes.Populatable {
|
||||||
return &KResource{}
|
return &KResource{}
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetCondition fetches the condition of the specified type.
|
// GetCondition fetches a copy of the condition of the specified type.
|
||||||
func (s *Status) GetCondition(t apis.ConditionType) *apis.Condition {
|
func (s *Status) GetCondition(t apis.ConditionType) *apis.Condition {
|
||||||
for _, cond := range s.Conditions {
|
for _, cond := range s.Conditions {
|
||||||
if cond.Type == t {
|
if cond.Type == t {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue