Skip to content

Commit 0c41edf

Browse files
committed
fix object type
1 parent 774b6ca commit 0c41edf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/object.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (l ObjectType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (a
4242
Null: true,
4343
}, nil
4444
}
45-
var attributes map[string]attr.Value
45+
attributes := map[string]attr.Value{}
4646

4747
val := map[string]tftypes.Value{}
4848
err := in.As(&val)
@@ -58,7 +58,7 @@ func (l ObjectType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (a
5858
attributes[k] = a
5959
}
6060

61-
var attributeTypes map[string]tftypes.Type
61+
attributeTypes := map[string]tftypes.Type{}
6262
for k, v := range l.AttributeTypes {
6363
attributeTypes[k] = v.TerraformType(ctx)
6464
}

0 commit comments

Comments
 (0)