From bb4d57e170a6d6b73b055ca4a3d3c9d885082a94 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 17 Jan 2026 17:00:24 +0000 Subject: [PATCH] More linting dancing --- core/modules/filter-tracker.js | 14 +++++++------- core/modules/filters/colour-ops.js | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/modules/filter-tracker.js b/core/modules/filter-tracker.js index 89c257204..761fc9464 100644 --- a/core/modules/filter-tracker.js +++ b/core/modules/filter-tracker.js @@ -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); } } diff --git a/core/modules/filters/colour-ops.js b/core/modules/filters/colour-ops.js index bac50816d..08eb15556 100644 --- a/core/modules/filters/colour-ops.js +++ b/core/modules/filters/colour-ops.js @@ -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) {