Skip to content

Commit

Permalink
Remove trailing whitespace in rootcmd (spf13#606)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Uiterwijk <[email protected]>
  • Loading branch information
puiterwijk authored and n10v committed Dec 31, 2017
1 parent ccaecb1 commit b95ab73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cobra/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func Execute() {
}
}
func init() { {{if .viper}}
func init() { {{- if .viper}}
cobra.OnInitialize(initConfig)
{{end}}
// Here you will define your flags and configuration settings.
Expand Down
2 changes: 1 addition & 1 deletion cobra/cmd/testdata/root.go.golden
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func Execute() {
}
}

func init() {
func init() {
cobra.OnInitialize(initConfig)

// Here you will define your flags and configuration settings.
Expand Down

0 comments on commit b95ab73

Please sign in to comment.