diff --git a/selectel/mks.go b/selectel/mks.go index 9a47fb64..30b2480a 100644 --- a/selectel/mks.go +++ b/selectel/mks.go @@ -553,7 +553,7 @@ func expandMKSNodegroupV1Labels(labels map[string]interface{}) map[string]string func expandAndValidateMKSClusterV1OIDC(d *schema.ResourceData) (cluster.OIDC, error) { nestedResource := d.Get("oidc").([]any) - if nestedResource == nil || len(nestedResource) == 0 { + if len(nestedResource) == 0 { return cluster.OIDC{}, nil } diff --git a/selectel/resource_selectel_mks_cluster_v1.go b/selectel/resource_selectel_mks_cluster_v1.go index e0812078..4914ab7d 100644 --- a/selectel/resource_selectel_mks_cluster_v1.go +++ b/selectel/resource_selectel_mks_cluster_v1.go @@ -180,7 +180,7 @@ func resourceMKSClusterV1() *schema.Resource { Type: schema.TypeString, Optional: true, Default: "", - DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { + DiffSuppressFunc: func(_, old, new string, _ *schema.ResourceData) bool { // Ignore diff on default value from API. return old == "sub" && new == "" }, @@ -189,7 +189,7 @@ func resourceMKSClusterV1() *schema.Resource { Type: schema.TypeString, Optional: true, Default: "", - DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { + DiffSuppressFunc: func(_, old, new string, _ *schema.ResourceData) bool { // Ignore diff on default value from API. return old == "groups" && new == "" },