don't convert empty DynamicValue to nil
This commit is contained in:
parent
2c17558446
commit
a915f3f13e
|
@ -86,7 +86,7 @@ func (v DynamicValue) ImpliedType() (cty.Type, error) {
|
||||||
|
|
||||||
// Copy produces a copy of the receiver with a distinct backing array.
|
// Copy produces a copy of the receiver with a distinct backing array.
|
||||||
func (v DynamicValue) Copy() DynamicValue {
|
func (v DynamicValue) Copy() DynamicValue {
|
||||||
if len(v) == 0 {
|
if v == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue