Skip to content

Commit

Permalink
Fix linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Sep 13, 2024
1 parent 6a5eee8 commit 02beaf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/tableprinters/size.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ func (t *TablePrinter) SizeTable(data []*models.V1SizeResponse, wide bool) ([]st
case models.V1SizeConstraintTypeCores:
cpu = fmt.Sprintf("%d - %d", c.Min, c.Max)
case models.V1SizeConstraintTypeMemory:
memory = fmt.Sprintf("%s - %s", humanize.Bytes(uint64(c.Min)), humanize.Bytes(uint64(c.Max)))
memory = fmt.Sprintf("%s - %s", humanize.Bytes(uint64(c.Min)), humanize.Bytes(uint64(c.Max))) //nolint:gosec
case models.V1SizeConstraintTypeStorage:
storage = fmt.Sprintf("%s - %s", humanize.Bytes(uint64(c.Min)), humanize.Bytes(uint64(c.Max)))
storage = fmt.Sprintf("%s - %s", humanize.Bytes(uint64(c.Min)), humanize.Bytes(uint64(c.Max))) //nolint:gosec
case models.V1SizeConstraintTypeGpu:
gpu = fmt.Sprintf("%s: %d - %d", c.Identifier, c.Min, c.Max)
}
Expand Down

0 comments on commit 02beaf9

Please sign in to comment.