functions: ValuesFunc - cleanup return type

This commit is contained in:
Kristin Laemmert 2018-06-06 10:45:28 -07:00 committed by Martin Atkins
parent a213c4a648
commit 0dbecc54c0
1 changed files with 1 additions and 1 deletions

View File

@ -856,7 +856,7 @@ var ValuesFunc = function.New(&function.Spec{
}
if len(values) == 0 {
return cty.ListValEmpty(cty.DynamicPseudoType), nil
return cty.ListValEmpty(retType), nil
}
return cty.ListVal(values), nil