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:
parent
6934a2d5c3
commit
30c1d31a99
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user