Skip to content

Commit

Permalink
combine multiple HasChange calls into a single HasChanges
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Nov 12, 2024
1 parent bef5629 commit 76f9e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sdkv2provider/resource_cloudflare_teams_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 76f9e0d

Please sign in to comment.