Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #376 from testwill/fmt
Browse files Browse the repository at this point in the history
chore: use fmt.Printf instead of fmt.Println(fmt.Sprintf(...))
  • Loading branch information
k8s-ci-robot authored Sep 25, 2023
2 parents 3993669 + a9aafa1 commit 998e115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var versionCmd = &cobra.Command{
if short {
fmt.Println(clientVersion.GitVersion)
} else {
fmt.Println(fmt.Sprintf("%#v", clientVersion))
fmt.Printf("%#v\n", clientVersion)
}
case "yaml":
marshalled, err := yaml.Marshal(&versionInfo)
Expand Down

0 comments on commit 998e115

Please sign in to comment.