From 4168fe78453f321feb5e15cdb7d76edd078a5b5b Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Sat, 15 Apr 2017 12:14:34 +0100 Subject: [PATCH] bump snap package to release PR --- io/snmp/package.json | 5 +++-- io/snmp/snmp.js | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/io/snmp/package.json b/io/snmp/package.json index 0626d0a4..1f29efb3 100644 --- a/io/snmp/package.json +++ b/io/snmp/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-snmp", - "version" : "0.0.10", + "version" : "0.0.11", "description" : "A Node-RED node that looks for SNMP oids.", "dependencies" : { "net-snmp" : "^1.1.19" @@ -22,6 +22,7 @@ "url": "http://nodered.org" }, "contributors": [ - { "name": "Mika Karalia" } + { "name": "Mika Karalia" }, + { "name": "Bryan Malyn" } ] } diff --git a/io/snmp/snmp.js b/io/snmp/snmp.js index fbda5f47..c3e90bf6 100644 --- a/io/snmp/snmp.js +++ b/io/snmp/snmp.js @@ -45,9 +45,9 @@ module.exports = function(RED) { node.warn("No oid(s) to search for"); } }); - - this.on("close", function(){ - if (node.session){ + + this.on("close", function() { + if (node.session) { node.session.close(); } }); @@ -113,9 +113,9 @@ module.exports = function(RED) { node.warn("No oid to search for"); } }); - - this.on("close", function(){ - if (node.session){ + + this.on("close", function() { + if (node.session) { node.session.close(); } }); @@ -170,9 +170,9 @@ module.exports = function(RED) { node.warn("No oid to search for"); } }); - - this.on("close", function(){ - if (node.session){ + + this.on("close", function() { + if (node.session) { node.session.close(); } }); @@ -228,9 +228,9 @@ module.exports = function(RED) { node.warn("No oid to search for"); } }); - - this.on("close", function(){ - if (node.session){ + + this.on("close", function() { + if (node.session) { node.session.close(); } });