1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-04-29 10:11:30 +00:00

More linting errors

This commit is contained in:
Jeremy Ruston
2026-01-17 16:53:52 +00:00
parent 93388bc3cc
commit fd709afc37
2 changed files with 4 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ exports["colour-set-alpha"] = makeSerialColourOperator(function (colour, operato
return colour.display().toString();
});
exports["colour-contrast"] = makeParallelColourOperator(function (colours, operator) {
exports["colour-contrast"] = makeParallelColourOperator(function (colours) {
var colourContrasts = [];
$tw.utils.each(colours,function(colour,index) {
if(!colour) {

View File

@@ -32,8 +32,9 @@ exports.parseCSSColorObject = function(colourString) {
var c = null;
try {
c = new Color(colourString);
} catch() {
// Return null if there is an error
} catch(e) {
// Keep the linter happy
e;
}
return c;
};