Skip to content

Commit

Permalink
Uses sort package in Azure ConfigTransformer
Browse files Browse the repository at this point in the history
This change uses the sort package, rather than the slices one that does
not exist in go 1.20.
  • Loading branch information
theobarberbany committed Jan 10, 2024
1 parent 6d715cd commit 827f6d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cloud/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"embed"
"encoding/json"
"fmt"
"slices"
"sort"
"strings"

"github.com/asaskevich/govalidator"
Expand Down Expand Up @@ -45,7 +45,7 @@ var (
for n := range validAzureCloudNames {
v = append(v, string(n))
}
slices.Sort(v)
sort.Strings(v)
return v
}()
)
Expand Down

0 comments on commit 827f6d1

Please sign in to comment.