don't convert empty DynamicValue to nil

This commit is contained in:
James Bardin 2018-12-20 10:28:26 -05:00
parent 2c17558446
commit a915f3f13e
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ func (v DynamicValue) ImpliedType() (cty.Type, error) {
// Copy produces a copy of the receiver with a distinct backing array.
func (v DynamicValue) Copy() DynamicValue {
if len(v) == 0 {
if v == nil {
return nil
}