mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Tidy up jsHinst errors in parser nodes
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
**/
|
||||
|
||||
module.exports = function(RED) {
|
||||
"use strict";
|
||||
var cheerio = require('cheerio');
|
||||
|
||||
function CheerioNode(n) {
|
||||
@@ -46,7 +47,7 @@ module.exports = function(RED) {
|
||||
//if (node.ret === "val") { pay.push( $(this).val() ); }
|
||||
}
|
||||
});
|
||||
if ((node.as === "single") && (pay.length != 0)) {
|
||||
if ((node.as === "single") && (pay.length !== 0)) {
|
||||
msg.payload = pay;
|
||||
node.send(msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user