mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Perf: avoid spread operator
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user