mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
kubectl: remove unnecessary fmt.Sprintf
Directly use the %#v verb in fmt.Fprintf instead.
This commit is contained in:
parent
f1b000db7c
commit
169f1845fc
@ -135,9 +135,9 @@ func (o *Options) Run() error {
|
||||
fmt.Fprintf(o.Out, "Server Version: %s\n", serverVersion.GitVersion)
|
||||
}
|
||||
} 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 {
|
||||
fmt.Fprintf(o.Out, "Server Version: %s\n", fmt.Sprintf("%#v", *serverVersion))
|
||||
fmt.Fprintf(o.Out, "Server Version: %#v\n", *serverVersion)
|
||||
}
|
||||
}
|
||||
case "yaml":
|
||||
|
Loading…
Reference in New Issue
Block a user