From 83a54f78df8d333435fe62806526e3acdd7304e3 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sat, 27 Sep 2025 22:02:47 -0700 Subject: [PATCH] Delete unnecessary ternary --- src/normalization.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/normalization.js b/src/normalization.js index 3d51af7..e9d7683 100644 --- a/src/normalization.js +++ b/src/normalization.js @@ -170,7 +170,7 @@ export class CSVNormalizer extends TransformStream { const out = []; for (const { name, type, displayName, defaultValue, index } of this.#columns) { let value = chunk[index] ?? ''; - const emptyField = value === '' ? true : false; + const emptyField = value === ''; switch (type) { case 'string': break; case 'number': value = this.#typeCastOnly ? Number(value) : CSVNormalizer.fixExcelNumber(value); break; -- 2.47.3