Don't extract repeated value

This commit is contained in:
Asim Aslam 2019-08-06 14:52:15 +01:00
parent c3ea25225c
commit bb01b3ed78
2 changed files with 0 additions and 8 deletions

View File

@ -61,10 +61,6 @@ func extractValue(v reflect.Type, d int) *registry.Value {
p = p.Elem() p = p.Elem()
} }
arg.Type = "[]" + p.Name() arg.Type = "[]" + p.Name()
val := extractValue(v.Elem(), d+1)
if val != nil {
arg.Values = append(arg.Values, val)
}
} }
return arg return arg

View File

@ -56,10 +56,6 @@ func extractValue(v reflect.Type, d int) *registry.Value {
p = p.Elem() p = p.Elem()
} }
arg.Type = "[]" + p.Name() arg.Type = "[]" + p.Name()
val := extractValue(v.Elem(), d+1)
if val != nil {
arg.Values = append(arg.Values, val)
}
} }
return arg return arg