mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Update node-red-nodes - clean up lint issues (mainly unused funcs and vars)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-sqlite",
|
||||
"version" : "0.0.5",
|
||||
"version" : "0.0.6",
|
||||
"description" : "A sqlite node for Node-RED",
|
||||
"dependencies" : {
|
||||
"sqlite3" : "3.0.*"
|
||||
|
@@ -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);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user