diff --git a/pkg/capacity/csv.go b/pkg/capacity/csv.go index 222cd38f..211ac88f 100644 --- a/pkg/capacity/csv.go +++ b/pkg/capacity/csv.go @@ -120,7 +120,7 @@ func (cp *csvPrinter) printLine(cl *csvLine) { lineItems := cp.getLineItems(cl) - fmt.Fprint(cp.file, strings.Join(lineItems[:], separator)+"\n") + _, _ = fmt.Fprint(cp.file, strings.Join(lineItems[:], separator)+"\n") } func (cp *csvPrinter) getLineItems(cl *csvLine) []string { diff --git a/pkg/capacity/table.go b/pkg/capacity/table.go index 33ddaf8b..8e9a96c1 100644 --- a/pkg/capacity/table.go +++ b/pkg/capacity/table.go @@ -29,7 +29,7 @@ type tablePrinter struct { showContainers bool showNamespace bool hideRequests bool - hideLimits bool + hideLimits bool sortBy string w *tabwriter.Writer availableFormat bool @@ -107,7 +107,7 @@ func (tp *tablePrinter) Print() { func (tp *tablePrinter) printLine(tl *tableLine) { lineItems := tp.getLineItems(tl) - fmt.Fprintf(tp.w, strings.Join(lineItems[:], "\t ")+"\n") + _, _ = fmt.Fprint(tp.w, strings.Join(lineItems[:], "\t ")+"\n") } func (tp *tablePrinter) getLineItems(tl *tableLine) []string {