Remove explicit nil initialization and correct error string.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal 2019-01-18 09:29:25 +05:30
parent 7f0e04a089
commit 9e638676e9
3 changed files with 4 additions and 4 deletions

View File

@ -170,7 +170,7 @@ func makeSymlinks(targetName string, commandFns []func() *cobra.Command) error {
} }
if errs { if errs {
return errors.New("Error creating one or more symlinks.") return errors.New("Error creating one or more symlinks")
} }
return nil return nil
} }

View File

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

View File

@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
// Package service provides EndpointController implementation // Package endpoint provides EndpointController implementation
// to manage and sync service endpoints. // to manage and sync service endpoints.
package endpoint // import "k8s.io/kubernetes/pkg/controller/endpoint" package endpoint // import "k8s.io/kubernetes/pkg/controller/endpoint"