Skip to content

Commit c2f7cdf

Browse files
mustard-mhroboquat
authored andcommitted
[gp-cli] remove sort in gp ports list cmd
1 parent 6f34cba commit c2f7cdf

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Diff for: components/gitpod-cli/cmd/ports-list.go

-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"context"
99
"fmt"
1010
"os"
11-
"sort"
1211
"time"
1312

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

41-
sort.Slice(ports, func(i, j int) bool {
42-
return int(ports[i].LocalPort) < int(ports[j].LocalPort)
43-
})
44-
4540
table := tablewriter.NewWriter(os.Stdout)
4641
table.SetHeader([]string{"Port", "Status", "URL", "Name & Description"})
4742
table.SetBorders(tablewriter.Border{Left: true, Top: false, Right: true, Bottom: false})

0 commit comments

Comments
 (0)