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
1 changed files with 2 additions and 2 deletions

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;
}