Merge pull request #72818 from humblec/md-2

Remove explicit nil initialization and correct error string.
This commit is contained in:
Kubernetes Prow Robot
2019-01-28 21:52:03 -08:00
committed by GitHub
4 changed files with 4 additions and 5 deletions

View File

@@ -82,8 +82,8 @@ func startServiceController(ctx ControllerContext) (http.Handler, bool, error) {
}
func startNodeIpamController(ctx ControllerContext) (http.Handler, bool, error) {
var clusterCIDR *net.IPNet = nil
var serviceCIDR *net.IPNet = nil
var clusterCIDR *net.IPNet
var serviceCIDR *net.IPNet
if !ctx.ComponentConfig.KubeCloudShared.AllocateNodeCIDRs {
return nil, false, nil