mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #106152 from tklauser/kubectl-version-unnecessary-sprintf
kubectl: remove unnecessary `fmt.Sprintf`
This commit is contained in:
commit
abdcd21902
@ -135,9 +135,9 @@ func (o *Options) Run() error {
|
|||||||
fmt.Fprintf(o.Out, "Server Version: %s\n", serverVersion.GitVersion)
|
fmt.Fprintf(o.Out, "Server Version: %s\n", serverVersion.GitVersion)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fmt.Fprintf(o.Out, "Client Version: %s\n", fmt.Sprintf("%#v", clientVersion))
|
fmt.Fprintf(o.Out, "Client Version: %#v\n", clientVersion)
|
||||||
if serverVersion != nil {
|
if serverVersion != nil {
|
||||||
fmt.Fprintf(o.Out, "Server Version: %s\n", fmt.Sprintf("%#v", *serverVersion))
|
fmt.Fprintf(o.Out, "Server Version: %#v\n", *serverVersion)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case "yaml":
|
case "yaml":
|
||||||
|
Loading…
Reference in New Issue
Block a user