mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	Had to IF statements broken on two lines, changed it so it's all on one line
This commit is contained in:
		| @@ -16,8 +16,7 @@ module.exports = function(RED) { | ||||
|             if (node.low === "") { | ||||
|                 node.low = 1 | ||||
|                 if ('from' in msg) { | ||||
|                     if ( (typeof msg.from === 'number')  | ||||
|                     || ( (typeof msg.from === 'string') && (!isNaN(Number(msg.from)) ) )) { | ||||
|                     if ( (typeof msg.from === 'number') || ( (typeof msg.from === 'string') && (!isNaN(Number(msg.from)) ) )) { | ||||
|                         node.low = Number(msg.from) | ||||
|                     } | ||||
|                 }  | ||||
| @@ -26,8 +25,7 @@ module.exports = function(RED) { | ||||
|             if (node.high === "") { | ||||
|                 node.high = 10  | ||||
|                 if ('to' in msg) { | ||||
|                     if ( (typeof msg.to === 'number')  | ||||
|                     || ( (typeof msg.to === 'string') && (!isNaN(Number(msg.to)) ) )) { | ||||
|                     if ( (typeof msg.to === 'number') || ( (typeof msg.to === 'string') && (!isNaN(Number(msg.to)) ) )) { | ||||
|                         node.high = Number(msg.to) | ||||
|                     } | ||||
|                 }  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user