diff --git a/util/data/data.go b/util/data/data.go index 1a9f8120..697611e7 100644 --- a/util/data/data.go +++ b/util/data/data.go @@ -748,13 +748,7 @@ func (d *Doc) Append(value interface{}, path ...string) (*Doc, error) { return &Doc{data: nil}, fmt.Errorf("Not an array") } - if values, ok := value.([]interface{}); ok { - for _, value := range values { - a = append(a, value) - } - } else { - a = append(a, value) - } + a = append(a, value) return d.Set(a, path...)