Mzack9999 2020-07-16 14:27:52 +02:00
parent a75ea4644b
commit a4ac439790
1 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ func (n *NucleiVar) IndexGet(index tengo.Object) (res tengo.Object, err error) {
return return
} }
func iterableToMap(t *tengo.Object) map[string]interface{} { func iterableToMap(t tengo.Object) map[string]interface{} {
m := make(map[string]interface{}) m := make(map[string]interface{})
if t.CanIterate() { if t.CanIterate() {
i := t.Iterate() i := t.Iterate()
@ -175,7 +175,7 @@ func iterableToMap(t *tengo.Object) map[string]interface{} {
return m return m
} }
func iterableToMapString(t *tengo.Object) map[string]string { func iterableToMapString(t tengo.Object) map[string]string {
m := make(map[string]string) m := make(map[string]string)
if t.CanIterate() { if t.CanIterate() {
i := t.Iterate() i := t.Iterate()