mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Tidy ups to ping (doc), dweet (unrequired util) and ddbout (JSHint)
This commit is contained in:
parent
2611853620
commit
f121f2683d
@ -31,7 +31,7 @@
|
||||
|
||||
<script type="text/x-red" data-help-name="ping">
|
||||
<p>Pings a machine and returns the trip time in mS.</p>
|
||||
<p>Returns <b>false</b> if no response received within 3 seconds, or if the host is unresolveable.</p>
|
||||
<p>Returns <b>false</b> if no response received within 5 seconds, or if the host is unresolveable.</p>
|
||||
<p>Default ping is every 20 seconds but can be configured.</p>
|
||||
</script>
|
||||
|
||||
|
@ -17,7 +17,6 @@
|
||||
module.exports = function(RED) {
|
||||
"use strict";
|
||||
var DweetClient = require("node-dweetio");
|
||||
var util = require('util');
|
||||
var dweetio = null;
|
||||
|
||||
function DweetioOutNode(n) {
|
||||
|
@ -36,7 +36,7 @@ function DDBOutNode(n) {
|
||||
ddb.putItem({ "TableName": this.table,
|
||||
"Item": attrWrapper.wrap(msg.payload) },
|
||||
function(err, data) {
|
||||
err && util.log(err);
|
||||
if (err) { util.log(err); }
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user