Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Sep 10, 2023
1 parent e9a2d24 commit 1fa49e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Build/lib/string-array-compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { readFileByLine } = require('./fetch-remote-text-by-line');
async function compareAndWriteFile(linesA, filePath) {
await fse.ensureFile(filePath);

let isEqual = false;
let isEqual = true;
let index = 0;

for await (const lineB of readFileByLine(filePath)) {
Expand All @@ -20,11 +20,10 @@ async function compareAndWriteFile(linesA, filePath) {
if (lineA[0] === '#' && lineB[0] === '#') {
continue;
}

if (lineA !== lineB) {
isEqual = false;
break;
} else {
isEqual = true;
}
}

Expand Down

0 comments on commit 1fa49e1

Please sign in to comment.