also splice filenames_checked so they are symmetrical

This commit is contained in:
jane 2021-06-06 00:19:36 -04:00
parent 7346a2d379
commit 24247b7cc5

View file

@ -80,6 +80,7 @@ function diff(current, checked) {
result += `${split[0]} download\n`; result += `${split[0]} download\n`;
} }
console.log(`popping line ${index}, current: ${lines_checked}`); console.log(`popping line ${index}, current: ${lines_checked}`);
filenames_checked.splice(index, 1);
lines_checked.splice(index, 1); lines_checked.splice(index, 1);
console.log(`result: ${lines_checked}`); console.log(`result: ${lines_checked}`);
} }