chore: eslint

This commit is contained in:
saqimtiaz
2026-07-24 20:36:13 +02:00
parent ee45768ade
commit 297d0d2002
2 changed files with 3 additions and 5 deletions
@@ -17,7 +17,7 @@ exports.intersection = function(operationSubFunction) {
secondRunSet = new Set(secondRunResults),
firstRunResults = results.toArray();
results.clear();
firstRunResults.forEach(title => {
firstRunResults.forEach((title) => {
if(secondRunSet.has(title)) {
results.push(title);
}
+2 -4
View File
@@ -33,10 +33,8 @@ exports.sort = function(operationSubFunction,options) {
results.clear();
// Prepare an array of indexes to sort
let indexes = Array.from(inputTitles.keys());
indexes.sort((a,b) => {
return compareFn(sortKeys[a],sortKeys[b]);
});
indexes.forEach(index => {
indexes.sort((a,b) => compareFn(sortKeys[a],sortKeys[b]));
indexes.forEach((index) => {
results.push(inputTitles[index]);
});
}