replicaset fix typo

This commit is contained in:
jianglingxia 2017-07-26 17:00:28 +08:00
parent 744455c69d
commit 2eab9cfb68

View File

@ -139,8 +139,7 @@ func NewReplicaSetCondition(condType extensions.ReplicaSetConditionType, status
// GetCondition returns a replicaset condition with the provided type if it exists. // GetCondition returns a replicaset condition with the provided type if it exists.
func GetCondition(status extensions.ReplicaSetStatus, condType extensions.ReplicaSetConditionType) *extensions.ReplicaSetCondition { func GetCondition(status extensions.ReplicaSetStatus, condType extensions.ReplicaSetConditionType) *extensions.ReplicaSetCondition {
for i := range status.Conditions { for _, c := range status.Conditions {
c := status.Conditions[i]
if c.Type == condType { if c.Type == condType {
return &c return &c
} }