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

@@ -27,13 +27,12 @@ module.exports = function(RED) {
node.doConnect = function() {
node.db = new sqlite3.Database(node.dbname);
node.db.on('open',function(err) {
if (node.tick) { clearTimeout(node.tick); }
node.log("opened "+node.dbname+" ok");
node.db.on('open', function() {
if (node.tick) { clearTimeout(node.tick); }
node.log("opened "+node.dbname+" ok");
});
node.db.on('error', function(err) {
node.error(err);
node.log("failed to open "+node.dbname);
node.error("failed to open "+node.dbname, err);
node.tick = setTimeout(function() { node.doConnect(); }, reconnect);
});
}