mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
slightly nicer jscs style updates to several nodes
again not pushed to npm - still just whitespace.
This commit is contained in:
@@ -50,7 +50,7 @@ module.exports = function(RED) {
|
||||
if (dweetio == null) { dweetio = new DweetClient(); }
|
||||
var node = this;
|
||||
|
||||
dweetio.listen_for(node.thing, function(dweet){
|
||||
dweetio.listen_for(node.thing, function(dweet) {
|
||||
// This will be called anytime there is a new dweet for my-thing
|
||||
if (dweet.content.hasOwnProperty("payload")) {
|
||||
dweet.payload=dweet.content.payload;
|
||||
|
@@ -93,7 +93,7 @@ module.exports = function(RED) {
|
||||
try {
|
||||
resolve(res.pushes[0].modified);
|
||||
}
|
||||
catch(ex){
|
||||
catch(ex) {
|
||||
self.warn('Unable to get history.');
|
||||
resolve(0);
|
||||
}
|
||||
@@ -329,7 +329,7 @@ module.exports = function(RED) {
|
||||
try {
|
||||
this.deviceid = this.credentials.deviceid;
|
||||
}
|
||||
catch(err){}
|
||||
catch(err) {}
|
||||
}
|
||||
|
||||
if (configNode) {
|
||||
@@ -390,7 +390,7 @@ module.exports = function(RED) {
|
||||
PushbulletOut.prototype.pushMsg = function(pushtype, deviceid, title, msg) {
|
||||
var self = this;
|
||||
if (this.pusher) {
|
||||
var handleErr = function(msg){
|
||||
var handleErr = function(msg) {
|
||||
return function(err) {
|
||||
if (err) {
|
||||
self.error(msg);
|
||||
|
Reference in New Issue
Block a user