Skip to content

Commit

Permalink
initialise empty slice with lenth zero
Browse files Browse the repository at this point in the history
  • Loading branch information
tshihad committed Dec 6, 2021
1 parent 5b9db50 commit b5819ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tftags.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ func recursiveSet(rv reflect.Value, d resourceData, computed bool) interface{} {
return subMap

case reflect.Slice:
if rv.Len() == 0 {
return nil
}
// if rv.Len() == 0 {
// return nil
// }
result := make([]interface{}, rv.Len())
// iterate through array and figure it out values. Value can be map, struct,
// slice or primitive data type
Expand Down

0 comments on commit b5819ae

Please sign in to comment.