From 76f9e0d02496a90b1c2c57c76bf4d120465fe414 Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Wed, 13 Nov 2024 10:24:40 +1100 Subject: [PATCH] combine multiple HasChange calls into a single HasChanges --- internal/sdkv2provider/resource_cloudflare_teams_list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/sdkv2provider/resource_cloudflare_teams_list.go b/internal/sdkv2provider/resource_cloudflare_teams_list.go index 0d9f96548d..14a1447b3f 100644 --- a/internal/sdkv2provider/resource_cloudflare_teams_list.go +++ b/internal/sdkv2provider/resource_cloudflare_teams_list.go @@ -150,7 +150,7 @@ func resourceCloudflareTeamsListUpdate(ctx context.Context, d *schema.ResourceDa return diag.FromErr(fmt.Errorf("failed to find Teams List ID in update response; resource was empty")) } - if d.HasChange("items") || d.HasChange("items_with_description") { + if d.HasChanges("items", "items_with_description") { oldItemsIface, newItemsIface := d.GetChange("items") oldItemsWithDescriptionIface, newItemsWithDescriptionIface := d.GetChange("items_with_description")