mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	Tidy ups to ping (doc), dweet (unrequired util) and ddbout (JSHint)
This commit is contained in:
		| @@ -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); } | ||||
|             }); | ||||
|         } | ||||
|     }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user