1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

http request: coding style

This commit is contained in:
Nathanaël Lécaudé 2018-11-01 17:32:25 -04:00
parent 6934a2d5c3
commit 30c1d31a99

View File

@ -94,9 +94,9 @@ module.exports = function(RED) {
opts.proxy = null;
if (msg.requestTimeout) {
if (isNaN(msg.requestTimeout)) {
node.warn(RED._("httpin.errors.timeout-isnan"))
node.warn(RED._("httpin.errors.timeout-isnan"));
} else if (msg.requestTimeout < 0) {
node.warn(RED._("httpin.errors.timeout-isnegative"))
node.warn(RED._("httpin.errors.timeout-isnegative"));
} else {
opts.timeout = msg.requestTimeout;
}