mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-15 22:31:24 +00:00
chore: eslint
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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]);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user