From caf717a1455a1bbf3b4c2988007cb2dfab8de9d9 Mon Sep 17 00:00:00 2001 From: Chris Marget Date: Tue, 10 Dec 2024 13:02:33 -0500 Subject: [PATCH] whitespace --- apstra/custom_types/ipv46_address_type.go | 3 --- apstra/custom_types/ipv46_address_value.go | 1 - 2 files changed, 4 deletions(-) diff --git a/apstra/custom_types/ipv46_address_type.go b/apstra/custom_types/ipv46_address_type.go index 9ea1581e..944967fe 100644 --- a/apstra/custom_types/ipv46_address_type.go +++ b/apstra/custom_types/ipv46_address_type.go @@ -50,19 +50,16 @@ func (t IPv46AddressType) ValueFromString(_ context.Context, in basetypes.String // for the provider to consume the data with. func (t IPv46AddressType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error) { attrValue, err := t.StringType.ValueFromTerraform(ctx, in) - if err != nil { return nil, err } stringValue, ok := attrValue.(basetypes.StringValue) - if !ok { return nil, fmt.Errorf("unexpected value type of %T", attrValue) } stringValuable, diags := t.ValueFromString(ctx, stringValue) - if diags.HasError() { return nil, fmt.Errorf("unexpected error converting StringValue to StringValuable: %v", diags) } diff --git a/apstra/custom_types/ipv46_address_value.go b/apstra/custom_types/ipv46_address_value.go index 1f69713d..7172f3a9 100644 --- a/apstra/custom_types/ipv46_address_value.go +++ b/apstra/custom_types/ipv46_address_value.go @@ -71,7 +71,6 @@ func (v IPv46Address) Type(_ context.Context) attr.Type { func (v IPv46Address) Equal(o attr.Value) bool { other, ok := o.(IPv46Address) - if !ok { return false }