Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Sheiko committed Jan 30, 2025
1 parent 444667a commit 41e50b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/capacity/csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions pkg/capacity/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type tablePrinter struct {
showContainers bool
showNamespace bool
hideRequests bool
hideLimits bool
hideLimits bool
sortBy string
w *tabwriter.Writer
availableFormat bool
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 41e50b0

Please sign in to comment.