Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Dec 10, 2024
1 parent f8744fb commit caf717a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions apstra/custom_types/ipv46_address_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 0 additions & 1 deletion apstra/custom_types/ipv46_address_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit caf717a

Please sign in to comment.