Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
iljarotar committed Sep 12, 2024
1 parent 8fb9e0c commit 0be3827
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 0be3827

Please sign in to comment.