Skip to content

Commit

Permalink
clean up indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Oct 31, 2022
1 parent b521581 commit e98fa40
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/provider/resource_cloudflare_teams_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func resourceCloudflareTeamsListCreate(ctx context.Context, d *schema.ResourceDa
tflog.Debug(ctx, fmt.Sprintf("Creating Cloudflare Teams List from struct: %+v", newTeamsList))

accountID := d.Get("account_id").(string)
identifier := cloudflare.AccountIdentifier(accountID)

identifier := cloudflare.AccountIdentifier(accountID)
list, err := client.CreateTeamsList(ctx, identifier, newTeamsList)
if err != nil {
return diag.FromErr(fmt.Errorf("error creating Teams List for account %q: %w", accountID, err))
Expand Down Expand Up @@ -75,7 +75,7 @@ func resourceCloudflareTeamsListRead(ctx context.Context, d *schema.ResourceData
d.Set("type", list.Type)
d.Set("description", list.Description)

listItems, _, err := client.ListTeamsListItems(ctx, identifier, cloudflare.ListTeamsListItemsParams{
listItems, _, err := client.ListTeamsListItems(ctx, identifier, cloudflare.ListTeamsListItemsParams{
ListID: d.Id(),
})
if err != nil {
Expand All @@ -101,7 +101,7 @@ func resourceCloudflareTeamsListUpdate(ctx context.Context, d *schema.ResourceDa

accountID := d.Get("account_id").(string)

identifier := cloudflare.AccountIdentifier(accountID)
identifier := cloudflare.AccountIdentifier(accountID)
teamsList, err := client.UpdateTeamsList(ctx, identifier, updatedTeamsList)
if err != nil {
return diag.FromErr(fmt.Errorf("error updating Teams List for account %q: %w", accountID, err))
Expand All @@ -117,7 +117,7 @@ func resourceCloudflareTeamsListUpdate(ctx context.Context, d *schema.ResourceDa
patchTeamsList := cloudflare.PatchTeamsListParams{ID: d.Id()}
setListItemDiff(&patchTeamsList, oldItems, newItems)

l, err := client.PatchTeamsList(ctx, identifier, patchTeamsList)
l, err := client.PatchTeamsList(ctx, identifier, patchTeamsList)

if err != nil {
return diag.FromErr(fmt.Errorf("error updating Teams List for account %q: %w", accountID, err))
Expand All @@ -136,7 +136,7 @@ func resourceCloudflareTeamsListDelete(ctx context.Context, d *schema.ResourceDa

tflog.Debug(ctx, fmt.Sprintf("Deleting Cloudflare Teams List using ID: %s", appID))

identifier := cloudflare.AccountIdentifier(accountID)
identifier := cloudflare.AccountIdentifier(accountID)
err := client.DeleteTeamsList(ctx, identifier, appID)
if err != nil {
return diag.FromErr(fmt.Errorf("error deleting Teams List for account %q: %w", accountID, err))
Expand Down

0 comments on commit e98fa40

Please sign in to comment.