Update node-red-nodes - clean up lint issues (mainly unused funcs and vars)

This commit is contained in:
dceejay
2015-04-16 10:58:34 +01:00
parent 1e7717ac8a
commit bb9d67f1ae
18 changed files with 34 additions and 40 deletions

View File

@@ -145,7 +145,7 @@
password: {type: "password"}
},
label: function() {
if (this.service == "") {
if (this.service === "") {
this.service = "localhost";
}
return (this.clientid ? this.clientid + "@" : "") + this.service;

View File

@@ -38,9 +38,9 @@ module.exports = function(RED) {
ex.stdout.on('data', function (data) {
line += data.toString();
});
ex.stderr.on('data', function (data) {
//ex.stderr.on('data', function (data) {
//console.log('[ping] stderr: ' + data);
});
//});
ex.on('close', function (code) {
var m = regex.exec(line)||"";
if (m !== '') {

View File

@@ -1,6 +1,6 @@
{
"name" : "node-red-node-ping",
"version" : "0.0.4",
"version" : "0.0.5",
"description" : "A Node-RED node to ping a remote server, for use as a keep-alive check.",
"dependencies" : {
},