Don't extract repeated value
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user