Replace `fmt.Fprintf` with `fmt.Fprint` in get_metadata.go

Signed-off-by: Mikhail Kopylov <mih.kopylov@yandex.ru>
pull/11631/head
Mikhail Kopylov 1 year ago
parent 5eb1e9d0db
commit 587c85f2e7

@ -74,14 +74,14 @@ func newGetMetadataCmd(cfg *action.Configuration, out io.Writer) *cobra.Command
} }
func (w metadataWriter) WriteTable(out io.Writer) error { func (w metadataWriter) WriteTable(out io.Writer) error {
_, _ = fmt.Fprintf(out, fmt.Sprintf("NAME: %v\n", w.metadata.Name)) _, _ = fmt.Fprint(out, fmt.Sprintf("NAME: %v\n", w.metadata.Name))
_, _ = fmt.Fprintf(out, fmt.Sprintf("CHART: %v\n", w.metadata.Chart)) _, _ = fmt.Fprint(out, fmt.Sprintf("CHART: %v\n", w.metadata.Chart))
_, _ = fmt.Fprintf(out, fmt.Sprintf("VERSION: %v\n", w.metadata.Version)) _, _ = fmt.Fprint(out, fmt.Sprintf("VERSION: %v\n", w.metadata.Version))
_, _ = fmt.Fprintf(out, fmt.Sprintf("APP_VERSION: %v\n", w.metadata.AppVersion)) _, _ = fmt.Fprint(out, fmt.Sprintf("APP_VERSION: %v\n", w.metadata.AppVersion))
_, _ = fmt.Fprintf(out, fmt.Sprintf("NAMESPACE: %v\n", w.metadata.Namespace)) _, _ = fmt.Fprint(out, fmt.Sprintf("NAMESPACE: %v\n", w.metadata.Namespace))
_, _ = fmt.Fprintf(out, fmt.Sprintf("REVISION: %v\n", w.metadata.Revision)) _, _ = fmt.Fprint(out, fmt.Sprintf("REVISION: %v\n", w.metadata.Revision))
_, _ = fmt.Fprintf(out, fmt.Sprintf("STATUS: %v\n", w.metadata.Status)) _, _ = fmt.Fprint(out, fmt.Sprintf("STATUS: %v\n", w.metadata.Status))
_, _ = fmt.Fprintf(out, fmt.Sprintf("DEPLOYED_AT: %v\n", w.metadata.DeployedAt)) _, _ = fmt.Fprint(out, fmt.Sprintf("DEPLOYED_AT: %v\n", w.metadata.DeployedAt))
return nil return nil
} }

Loading…
Cancel
Save