More linting dancing

This commit is contained in:
Jeremy Ruston
2026-01-17 17:00:24 +00:00
parent fd709afc37
commit bb4d57e170
2 changed files with 8 additions and 8 deletions
+7 -7
View File
@@ -59,14 +59,14 @@ class FilterTracker {
}
processTrackers() {
for (const id of this.trackers.keys()) {
for(const id of this.trackers.keys()) {
this.processTracker(id);
}
}
processTracker(id) {
const tracker = this.trackers.get(id);
if (!tracker) return;
if(!tracker) return;
const results = [];
// Evaluate the filter and remove duplicate results
$tw.utils.each(this.wiki.filterTiddlers(tracker.filterString), title => {
@@ -74,13 +74,13 @@ class FilterTracker {
});
// Process the newly entered results
results.forEach(title => {
if (!tracker.previousResults.includes(title) && !tracker.resultValues[title] && tracker.fnEnter) {
if(!tracker.previousResults.includes(title) && !tracker.resultValues[title] && tracker.fnEnter) {
tracker.resultValues[title] = tracker.fnEnter(title) || true;
}
});
// Process the results that have just left
tracker.previousResults.forEach(title => {
if (!results.includes(title) && tracker.resultValues[title] && tracker.fnLeave) {
if(!results.includes(title) && tracker.resultValues[title] && tracker.fnLeave) {
tracker.fnLeave(title, tracker.resultValues[title]);
delete tracker.resultValues[title];
}
@@ -90,13 +90,13 @@ class FilterTracker {
}
processChanges(changes) {
for (const tracker of this.trackers.values()) {
for(const tracker of this.trackers.values()) {
Object.keys(changes).forEach(title => {
if (title && tracker.previousResults.includes(title) && tracker.fnChange) {
if(title && tracker.previousResults.includes(title) && tracker.fnChange) {
tracker.resultValues[title] = tracker.fnChange(title, tracker.resultValues[title]) || tracker.resultValues[title];
}
});
if (tracker.fnProcess) {
if(tracker.fnProcess) {
tracker.fnProcess(changes);
}
}
+1 -1
View File
@@ -80,7 +80,7 @@ exports["colour-best-contrast"] = makeParallelColourOperator(function (colours,
}
});
exports["colour-interpolate"] = function(source,operator,options) {
exports["colour-interpolate"] = function(source,operator) {
// Get the colour space suffix
var space = ((((operator.suffixes || [])[0] || ["srgb"])[0]) || "").toLowerCase();
if(colourSpacesList.indexOf(space) === -1) {