From 6d3809a416e722bd6212d637ad9da25d0d954f7f Mon Sep 17 00:00:00 2001 From: Taylor Thomas Date: Wed, 5 Dec 2018 10:45:49 -0800 Subject: [PATCH] ref(kube): Gets rid of superfluous Sprintf call Signed-off-by: Taylor Thomas --- pkg/kube/client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/kube/client.go b/pkg/kube/client.go index b60b0cfc2..4a387d524 100644 --- a/pkg/kube/client.go +++ b/pkg/kube/client.go @@ -220,8 +220,7 @@ func (c *Client) Get(namespace string, reader io.Reader) (string, error) { buf := new(bytes.Buffer) printFlags := get.NewHumanPrintFlags() for t, ot := range objs { - kindHeader := fmt.Sprintf("==> %s\n", t) - if _, err = buf.WriteString(kindHeader); err != nil { + if _, err = fmt.Fprintf(buf, "==> %s\n", t); err != nil { return "", err } typePrinter, _ := printFlags.ToPrinter("")