Skip to content

Commit

Permalink
remove unused params
Browse files Browse the repository at this point in the history
  • Loading branch information
alexluong committed Sep 3, 2024
1 parent b6bdeb5 commit bda76ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/sdkv2provider/resource_cloudflare_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ func suppressTrailingDots(k, old, new string, d *schema.ResourceData) bool {
return strings.TrimSuffix(old, ".") == newTrimmed
}

func suppressMatchingIpv6(_, old, new string, _ *schema.ResourceData) bool {
func suppressMatchingIpv6(old, new string) bool {
oldIpv6 := net.ParseIP(old)
if oldIpv6 == nil || oldIpv6.To16() == nil {
return false
Expand All @@ -516,7 +516,7 @@ func suppressMatchingIpv6(_, old, new string, _ *schema.ResourceData) bool {
}

func suppressContent(k, old, new string, d *schema.ResourceData) bool {
if suppressMatchingIpv6(k, old, new, d) {
if suppressMatchingIpv6(old, new) {
return true
}
return suppressTrailingDots(k, old, new, d)
Expand Down

0 comments on commit bda76ab

Please sign in to comment.