mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix util jshint as we need the behaviour.
This commit is contained in:
parent
76e98f74fa
commit
827711ca89
@ -153,6 +153,7 @@ function evaluateNodeProperty(value, type, node, msg) {
|
||||
if (type === 'str') {
|
||||
return ""+value;
|
||||
} else if (type === 'num') {
|
||||
/*jshint -W053 */
|
||||
return new Number(value);
|
||||
} else if (type === 'json') {
|
||||
return JSON.parse(value);
|
||||
@ -165,6 +166,7 @@ function evaluateNodeProperty(value, type, node, msg) {
|
||||
} else if (type === 'global' && node) {
|
||||
return node.context().global.get(value);
|
||||
} else if (type === 'bool') {
|
||||
/*jshint -W053 */
|
||||
return new Boolean(/^true$/i.test(value));
|
||||
}
|
||||
return value;
|
||||
|
Loading…
Reference in New Issue
Block a user