From 5fd9bd1053482907534d5730ba5ce500f66f1a06 Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Wed, 22 Nov 2017 03:53:00 +0200 Subject: [PATCH] fix lint --- cmd/config.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/config.go b/cmd/config.go index 98eb02d94..76423781f 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -82,10 +82,7 @@ func clusterConfig(ctx *cli.Context) error { // Generate empty configuration file if ctx.Bool("empty") { cluster.Hosts = make([]v1.RKEConfigHost, 1) - if err := writeConfig(&cluster, configFile, print); err != nil { - return err - } - return nil + return writeConfig(&cluster, configFile, print) } // Get number of hosts