From b968c2fe21063030f972d71f846930cb9a98ceb8 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Wed, 3 Jul 2024 15:05:50 +1000 Subject: [PATCH] refactor(csv): remove dead code --- csv/_io.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/csv/_io.ts b/csv/_io.ts index bf43a4767fed..a43930a68902 100644 --- a/csv/_io.ts +++ b/csv/_io.ts @@ -175,20 +175,6 @@ export async function parseRecord( break parseField; } recordBuffer += "\n"; // preserve line feed (This is because TextProtoReader removes it.) - } else { - // Abrupt end of file (EOF on error). - if (!opt.lazyQuotes) { - const col = runeCount(fullLine); - quoteError = new ParseError( - startLine + 1, - lineIndex, - col, - ERR_QUOTE, - ); - break parseField; - } - fieldIndexes.push(recordBuffer.length); - break parseField; } } }