mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #97841 from feranwq/patch-92402-2
fix vendor/k8s.io/cli-runtime/pkg/printers staticcheck
This commit is contained in:
commit
6040a06a2e
@ -35,7 +35,6 @@ vendor/k8s.io/apiserver/pkg/storage/tests
|
|||||||
vendor/k8s.io/apiserver/pkg/storage/value/encrypt/envelope
|
vendor/k8s.io/apiserver/pkg/storage/value/encrypt/envelope
|
||||||
vendor/k8s.io/apiserver/pkg/util/webhook
|
vendor/k8s.io/apiserver/pkg/util/webhook
|
||||||
vendor/k8s.io/apiserver/pkg/util/wsstream
|
vendor/k8s.io/apiserver/pkg/util/wsstream
|
||||||
vendor/k8s.io/cli-runtime/pkg/printers
|
|
||||||
vendor/k8s.io/client-go/discovery
|
vendor/k8s.io/client-go/discovery
|
||||||
vendor/k8s.io/client-go/rest
|
vendor/k8s.io/client-go/rest
|
||||||
vendor/k8s.io/client-go/rest/watch
|
vendor/k8s.io/client-go/rest/watch
|
||||||
|
@ -94,9 +94,8 @@ func printHeader(columnNames []string, w io.Writer) error {
|
|||||||
// PrintObj prints the obj in a human-friendly format according to the type of the obj.
|
// PrintObj prints the obj in a human-friendly format according to the type of the obj.
|
||||||
func (h *HumanReadablePrinter) PrintObj(obj runtime.Object, output io.Writer) error {
|
func (h *HumanReadablePrinter) PrintObj(obj runtime.Object, output io.Writer) error {
|
||||||
|
|
||||||
w, found := output.(*tabwriter.Writer)
|
if _, found := output.(*tabwriter.Writer); !found {
|
||||||
if !found {
|
w := GetNewTabWriter(output)
|
||||||
w = GetNewTabWriter(output)
|
|
||||||
output = w
|
output = w
|
||||||
defer w.Flush()
|
defer w.Flush()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user