3
0

Recheck untyped value for Dict implementation

This commit is contained in:
Denis Arh
2021-04-01 14:24:28 +02:00
parent b458746167
commit daba028d7b
+6 -1
View File
@@ -135,7 +135,12 @@ func (t *Vars) Dict() map[string]interface{} {
dict[k] = v.Dict()
case TypedValue:
dict[k] = v.Get()
tmp := v.Get()
if d, is := tmp.(Dict); is {
dict[k] = d.Dict()
} else {
dict[k] = tmp
}
default:
dict[k] = v