Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelsz-rb committed Oct 17, 2022
1 parent 329e30e commit 807feab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rollbar/resource_notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ func flattenConfig(config map[string]interface{}) *schema.Set {
out = append(out, config)
specResource := resourceNotification().Schema["config"].Elem.(*schema.Resource)
f := schema.HashResource(specResource)
g := schema.NewSet(f, out)
return g
set := schema.NewSet(f, out)
return set
}

func flattenRule(filters []interface{}, trigger string) *schema.Set {
Expand Down Expand Up @@ -317,8 +317,8 @@ func flattenRule(filters []interface{}, trigger string) *schema.Set {
m["trigger"] = trigger
specResource := resourceNotification().Schema["rule"].Elem.(*schema.Resource)
f := schema.HashResource(specResource)
g := schema.NewSet(f, out)
return g
set := schema.NewSet(f, out)
return set
}

func resourceNotificationRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
Expand Down

0 comments on commit 807feab

Please sign in to comment.