Merge pull request #5019 from thomastaylor312/ref/printing

ref(kube): Gets rid of superfluous Sprintf call
pull/5022/head
Taylor Thomas 6 years ago committed by GitHub
commit ef9b202bff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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("")

Loading…
Cancel
Save