Skip to content

Commit

Permalink
refactor: use internal package
Browse files Browse the repository at this point in the history
  • Loading branch information
alexplischke committed Nov 7, 2024
1 parent 1ed1573 commit 78af6cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/storage/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"os"
"time"

"github.com/dustin/go-humanize"
"github.com/jedib0t/go-pretty/v6/table"
"github.com/jedib0t/go-pretty/v6/text"
cmds "github.com/saucelabs/saucectl/internal/cmd"
"github.com/saucelabs/saucectl/internal/human"
"github.com/saucelabs/saucectl/internal/segment"
"github.com/saucelabs/saucectl/internal/storage"
"github.com/saucelabs/saucectl/internal/usage"
Expand Down Expand Up @@ -143,7 +143,7 @@ func renderTable(list storage.List) {
AlignFooter: text.AlignRight,
Transformer: func(val interface{}) string {
t, _ := val.(int)
return humanize.Bytes(uint64(t))
return human.Bytes(int64(t))
},
},
{
Expand Down

0 comments on commit 78af6cd

Please sign in to comment.