Skip to content

Commit

Permalink
Merge pull request #34 from galal-hussein/fix_lint
Browse files Browse the repository at this point in the history
fix lint
  • Loading branch information
galal-hussein authored Nov 22, 2017
2 parents aa2b3a3 + 5fd9bd1 commit 9903d61
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9903d61

Please sign in to comment.