Commit a29c41f 1 parent 8dbaab8 commit a29c41f Copy full SHA for a29c41f
File tree 2 files changed +0
-12
lines changed
2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change 6
6
"os/exec"
7
7
"path/filepath"
8
8
"runtime"
9
- "sort"
10
9
"strconv"
11
10
"strings"
12
11
"time"
@@ -92,11 +91,6 @@ type RunL1NodeVersionSelect struct {
92
91
93
92
func NewRunL1NodeVersionSelect (state * RunL1NodeState ) * RunL1NodeVersionSelect {
94
93
versions := utils .ListInitiaReleases ("https://api.github.com/repos/initia-labs/initia/releases" )
95
- options := make ([]string , 0 , len (versions ))
96
- for key := range versions {
97
- options = append (options , key )
98
- }
99
- sort .Sort (sort .Reverse (sort .StringSlice (options )))
100
94
return & RunL1NodeVersionSelect {
101
95
Selector : utils.Selector [string ]{
102
96
Options : utils .SortVersions (versions ),
Original file line number Diff line number Diff line change 4
4
"fmt"
5
5
"os"
6
6
"path/filepath"
7
- "sort"
8
7
"strings"
9
8
"time"
10
9
@@ -228,11 +227,6 @@ type VersionSelect struct {
228
227
229
228
func NewRunL1NodeVersionSelect (state * LaunchState ) * VersionSelect {
230
229
versions := utils .ListInitiaReleases (fmt .Sprintf ("https://api.github.com/repos/initia-labs/mini%s/releases" , strings .ToLower (state .vmType )))
231
- options := make ([]string , 0 , len (versions ))
232
- for key := range versions {
233
- options = append (options , key )
234
- }
235
- sort .Sort (sort .Reverse (sort .StringSlice (options )))
236
230
return & VersionSelect {
237
231
Selector : utils.Selector [string ]{
238
232
Options : utils .SortVersions (versions ),
You can’t perform that action at this time.
0 commit comments