Skip to content

Commit

Permalink
chore: remove caser
Browse files Browse the repository at this point in the history
  • Loading branch information
SCedricThomas committed Jul 13, 2023
1 parent ddc2d6d commit 45b4813
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions db/maintenance/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import (
"os"

"github.com/olekukonko/tablewriter"
"golang.org/x/text/cases"
"golang.org/x/text/language"

"github.com/Scalingo/cli/config"
"github.com/Scalingo/cli/io"
Expand All @@ -17,7 +15,6 @@ import (
)

func List(ctx context.Context, app string, addonName string, paginationOpts scalingo.PaginationOpts) error {
caser := cases.Title(language.English)
c, err := config.ScalingoClient(ctx)
if err != nil {
return errors.Notef(ctx, err, "get Scalingo client")
Expand All @@ -44,10 +41,10 @@ func List(ctx context.Context, app string, addonName string, paginationOpts scal

t.Append([]string{
maintenance.ID,
caser.String(string(maintenance.Type)),
string(maintenance.Type),
startedAt,
endedAt,
caser.String(string(maintenance.Status)),
string(maintenance.Status),
})
}
t.Render()
Expand Down

0 comments on commit 45b4813

Please sign in to comment.