diff --git a/storage/csv.go b/storage/csv.go index 7265a001..e89ad6b1 100644 --- a/storage/csv.go +++ b/storage/csv.go @@ -4,10 +4,11 @@ import ( "bytes" "encoding/csv" "fmt" + "sort" + "github.com/tomwright/dasel/v2" "github.com/tomwright/dasel/v2/dencoding" "github.com/tomwright/dasel/v2/util" - "sort" ) func init() { @@ -222,7 +223,7 @@ func (p *CSVParser) ToBytes(value dasel.Value, options ...ReadWriteOption) ([]by } } - return append(buffer.Bytes()), nil + return buffer.Bytes(), nil } func (p *CSVParser) toBytesHandleDoc(writer *csv.Writer, doc *CSVDocument) error {