Skip to content

Commit 9082347

Browse files
committed
lint
1 parent d75ae5e commit 9082347

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

internal/services/k8s/cluster.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,14 @@ func ResourceCluster() *schema.Resource {
6969
ForceNew: true,
7070
Description: "The CNI plugin of the cluster",
7171
ValidateDiagFunc: func(i any, p cty.Path) diag.Diagnostics {
72-
cniValues := []string(nil)
73-
var values []k8s.CNI
74-
for _, cniValue := range values {
75-
cniValues = append(cniValues, cniValue.String())
72+
var cniValues []k8s.CNI
73+
74+
cniStringValues := []string(nil)
75+
for _, cniValue := range cniValues {
76+
cniStringValues = append(cniStringValues, cniValue.String())
7677
}
77-
return verify.ValidateStringInSliceWithWarning(cniValues, "cni")(i, p)
78+
79+
return verify.ValidateStringInSliceWithWarning(cniStringValues, "cni")(i, p)
7880
},
7981
},
8082
"tags": {

0 commit comments

Comments
 (0)