Skip to content

Commit a72fc96

Browse files
committed
Fix
1 parent 60d8fcd commit a72fc96

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

internal/locality/ids.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package locality
22

33
// ExpandID returns the id whether it is a localizedID or a raw ID.
4-
func ExpandID(id interface{}) string {
4+
func ExpandID(id any) string {
55
_, ID, err := ParseLocalizedID(id.(string))
66
if err != nil {
77
return id.(string)
@@ -10,10 +10,10 @@ func ExpandID(id interface{}) string {
1010
return ID
1111
}
1212

13-
func ExpandIDs(data interface{}) []string {
14-
expandedIDs := make([]string, 0, len(data.([]interface{})))
13+
func ExpandIDs(data any) []string {
14+
expandedIDs := make([]string, 0, len(data.([]any)))
1515

16-
for _, s := range data.([]interface{}) {
16+
for _, s := range data.([]any) {
1717
if s == nil {
1818
s = ""
1919
}

internal/locality/validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
// ValidateStringInSliceWithWarning helps to only returns warnings in case we got a non-public locality passed
1111
func ValidateStringInSliceWithWarning(correctValues []string, field string) schema.SchemaValidateDiagFunc {
12-
return func(i interface{}, path cty.Path) diag.Diagnostics {
12+
return func(i any, path cty.Path) diag.Diagnostics {
1313
_, rawErr := validation.StringInSlice(correctValues, true)(i, field)
1414

1515
var res diag.Diagnostics

0 commit comments

Comments
 (0)