mirror of
https://github.com/SukkaW/Surge.git
synced 2026-07-29 14:51:46 +08:00
Make ESLint Happy
This commit is contained in:
@@ -41,9 +41,8 @@ export async function compareAndWriteFile(span: Span, linesA: string[], filePath
|
||||
}
|
||||
|
||||
const writeStream = fs.createWriteStream(filePath);
|
||||
let p;
|
||||
for (let i = 0; i < linesALen; i++) {
|
||||
p = asyncWriteToStream(writeStream, linesA[i] + '\n');
|
||||
const p = asyncWriteToStream(writeStream, linesA[i] + '\n');
|
||||
// eslint-disable-next-line no-await-in-loop -- stream high water mark
|
||||
if (p) await p;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user