From 7b162bf88d40f885dd401b81ef8329cc04892577 Mon Sep 17 00:00:00 2001 From: jonathangoulding Date: Mon, 3 Feb 2025 15:39:04 +0000 Subject: [PATCH] chore: pre pr checks --- app/lib/transform-to-csv.lib.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/lib/transform-to-csv.lib.js b/app/lib/transform-to-csv.lib.js index dc70664727..ffe8a196a3 100644 --- a/app/lib/transform-to-csv.lib.js +++ b/app/lib/transform-to-csv.lib.js @@ -4,7 +4,7 @@ * Transforms an array into a CSV formatted string. * * A CSV header / row is the same regardless of transformation. The header is commonly the first row. - * Therefore, this function works for both a header and rows. + * Therefore, this function works for both a header and row. * * The function can transform most common types: * - Objects are stringified and parsed @@ -27,13 +27,13 @@ function TransformArrayToCSVRow(arrayToTransform) { return undefined } - const transformedArrayToRow = arrayToTransform + const transformedRow = arrayToTransform .map((value) => { return _transformValueToCSV(value) }) .join(',') - return transformedArrayToRow + '\n' + return transformedRow + '\n' } /**