Skip to content

Commit

Permalink
[gp-cli] remove sort in gp ports list cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh authored and roboquat committed Oct 20, 2022
1 parent 6f34cba commit c2f7cdf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions components/gitpod-cli/cmd/ports-list.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"context"
"fmt"
"os"
"sort"
"time"

supervisor_helper "github.com/gitpod-io/gitpod/gitpod-cli/pkg/supervisor-helper"
Expand Down Expand Up @@ -38,10 +37,6 @@ var listPortsCmd = &cobra.Command{
return
}

sort.Slice(ports, func(i, j int) bool {
return int(ports[i].LocalPort) < int(ports[j].LocalPort)
})

table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Port", "Status", "URL", "Name & Description"})
table.SetBorders(tablewriter.Border{Left: true, Top: false, Right: true, Bottom: false})
Expand Down

0 comments on commit c2f7cdf

Please sign in to comment.