mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 03:33:26 +00:00
kubectl: remove unnecessary fmt.Sprintf
Directly use the %#v verb in fmt.Fprintf instead.
This commit is contained in:
@@ -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":
|
||||
|
Reference in New Issue
Block a user