mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-30 13:36:45 +00:00
Fixes ESLint errors (#9668)
* fix: apply automatic eslint fixes * lint: allow hashbang comment for tiddlywiki.js * lint: first back of manual lint fixes for unused vars * lint: added more fixes for unused vars * lint: missed files * lint: updated eslint config with selected rules from #9669
This commit is contained in:
@@ -10,13 +10,12 @@ Filter operators for open location code conversions
|
||||
"use strict";
|
||||
|
||||
var openlocationcode = require("$:/plugins/tiddlywiki/geospatial/openlocationcode.js"),
|
||||
turf = require("$:/plugins/tiddlywiki/geospatial/turf.js"),
|
||||
geotools = require("$:/plugins/tiddlywiki/geospatial/geotools.js");
|
||||
turf = require("$:/plugins/tiddlywiki/geospatial/turf.js");
|
||||
|
||||
exports["olc-decode"] = function(source,operator,options) {
|
||||
var olc;
|
||||
try {
|
||||
olc = openlocationcode.decode(operator.operands[0] || "")
|
||||
olc = openlocationcode.decode(operator.operands[0] || "");
|
||||
} catch(e) {
|
||||
return [];
|
||||
}
|
||||
@@ -44,7 +43,7 @@ exports["olc-encode"] = function(source,operator,options) {
|
||||
try {
|
||||
olc = openlocationcode.encode(lat,long,codelength);
|
||||
} catch(e) {
|
||||
return []
|
||||
return [];
|
||||
}
|
||||
return [olc];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user