Commit 6d3809a4 authored by Taylor Thomas's avatar Taylor Thomas

ref(kube): Gets rid of superfluous Sprintf call

Signed-off-by: 's avatarTaylor Thomas <thomastaylor312@gmail.com>
parent 88af9659
...@@ -220,8 +220,7 @@ func (c *Client) Get(namespace string, reader io.Reader) (string, error) { ...@@ -220,8 +220,7 @@ func (c *Client) Get(namespace string, reader io.Reader) (string, error) {
buf := new(bytes.Buffer) buf := new(bytes.Buffer)
printFlags := get.NewHumanPrintFlags() printFlags := get.NewHumanPrintFlags()
for t, ot := range objs { for t, ot := range objs {
kindHeader := fmt.Sprintf("==> %s\n", t) if _, err = fmt.Fprintf(buf, "==> %s\n", t); err != nil {
if _, err = buf.WriteString(kindHeader); err != nil {
return "", err return "", err
} }
typePrinter, _ := printFlags.ToPrinter("") typePrinter, _ := printFlags.ToPrinter("")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment