Skip to content

Commit

Permalink
Handling '[]'
Browse files Browse the repository at this point in the history
  • Loading branch information
BSick7 committed Nov 11, 2020
1 parent 5d4df44 commit d85ead2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convert/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (c *converter) convertExpression(expr hclsyntax.Expression) (interface{}, e
case *hclsyntax.TemplateWrapExpr:
return c.convertExpression(value.Wrapped)
case *hclsyntax.TupleConsExpr:
var list []interface{}
list := make([]interface{}, 0)
for _, ex := range value.Exprs {
elem, err := c.convertExpression(ex)
if err != nil {
Expand Down

0 comments on commit d85ead2

Please sign in to comment.