Skip to content

Commit 8bdf00a

Browse files
committed
Use sort instead of slices package for go 1.20
1 parent 1173bd2 commit 8bdf00a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/lekko/feature.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"os"
2323
"os/exec"
2424
"path"
25-
"slices"
25+
"sort"
2626
"strings"
2727
"text/tabwriter"
2828
"time"
@@ -358,7 +358,7 @@ func configGroup() *cobra.Command {
358358
for _, nsf := range allNsfs {
359359
options = append(options, nsf.featureName)
360360
}
361-
slices.Sort(options)
361+
sort.Strings(options)
362362
// NOTE: Currently this doesn't respect selection order
363363
// so if someone wants a specific order they have to pass the flag explicitly
364364
if err := survey.AskOne(&survey.MultiSelect{

0 commit comments

Comments
 (0)