Re-lint a load of nodes

This commit is contained in:
Dave Conway-Jones
2017-01-29 17:45:44 +00:00
parent 603189f123
commit 316a2fd272
42 changed files with 447 additions and 254 deletions

View File

@@ -29,7 +29,8 @@ module.exports = function(RED) {
if (lt && ln) {
msg.location.geohash = geohash.encode(lt, ln, le);
node.send(msg);
} else {
}
else {
node.warn("lat or lon missing from msg.location");
}
}
@@ -62,7 +63,8 @@ module.exports = function(RED) {
if (!isNaN(la) && !isNaN(lo)) {
msg.payload = geohash.encode(la, lo, li);
node.send(msg);
} else {
}
else {
node.warn("Incorrect string format - should be lat,lon");
}
}
@@ -79,7 +81,8 @@ module.exports = function(RED) {
if (lat && lon) {
msg.payload.geohash = geohash.encode(lat, lon, len);
node.send(msg);
} else {
}
else {
node.warn("lat or lon missing from msg.payload");
}
}