javascript lint

This commit is contained in:
Oliver Walters 2022-05-10 08:12:04 +10:00
parent 5ea115ae83
commit 26499816c1

View File

@ -30,7 +30,7 @@ function installPlugin() {
function locateItemOrLocation(options={}) { function locateItemOrLocation(options={}) {
if (!options.item && !options.location) { if (!options.item && !options.location) {
console.error("locateItemOrLocation: Either 'item' or 'location' must be provided!"); console.error(`locateItemOrLocation: Either 'item' or 'location' must be provided!`);
return; return;
} }
@ -58,7 +58,7 @@ function locateItemOrLocation(options={}) {
success: function(plugins) { success: function(plugins) {
// No 'locate' plugins are available! // No 'locate' plugins are available!
if (plugins.length == 0) { if (plugins.length == 0) {
console.warn("No 'locate' plugins are available"); console.warn(`No 'locate' plugins are available`);
} else if (plugins.length == 1) { } else if (plugins.length == 1) {
// Only a single locate plugin is available // Only a single locate plugin is available
performLocate(plugins[0].key); performLocate(plugins[0].key);