Return nil directly when err is nil.

This commit is contained in:
xiangpengzhao 2016-08-01 13:31:21 -04:00
parent faffbe4e18
commit 0623f7bcf8

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"