Merge pull request #29866 from xiangpengzhao/err-to-nil

Automatic merge from submit-queue

Return nil directly when err is nil.

When err is nil, return nil directly instead of `err` to avoid confusion.
This commit is contained in:
Kubernetes Submit Queue 2016-08-08 12:23:32 -07:00 committed by GitHub
commit 48c0612805

View File

@ -60,7 +60,7 @@ func NewClusterClientSet(c *federation_v1beta1.Cluster) (*ClusterClient, error)
return nil, nil
}
}
return &clusterClientSet, err
return &clusterClientSet, nil
}
// GetClusterHealthStatus gets the kubernetes cluster health status by requesting "/healthz"