Perf: avoid spread operator

This commit is contained in:
SukkaW
2024-06-26 17:49:32 +08:00
parent e7766281d0
commit 33636285e9
8 changed files with 69 additions and 56 deletions

View File

@@ -26,7 +26,7 @@ export async function compareAndWriteFile(span: Span, linesA: string[], filePath
let index = 0;
for await (const lineB of readFileByLine(file)) {
const lineA = linesA[index];
const lineA = linesA[index] as string | undefined;
index++;
if (lineA == null) {