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

Fixed the code format of 70-CSV.js from Tab to Space. try again.

This commit is contained in:
tseigo 2019-10-22 00:24:10 +09:00
parent 29f1651a18
commit 25de4e4782

View File

@ -230,17 +230,17 @@ module.exports = function(RED) {
node.send(msg); // finally send the array
}
}
else {
var len = a.length;
for (var i = 0; i < len; i++) {
else {
var len = a.length;
for (var i = 0; i < len; i++) {
var newMessage = RED.util.cloneMessage(msg);
newMessage.payload = a[i];
if (!has_parts) {
newMessage.parts = {
id: msg._msgid,
index: i,
count: len
};
newMessage.parts = {
id: msg._msgid,
index: i,
count: len
};
}
else {
newMessage.parts.index -= node.skip;
@ -251,8 +251,8 @@ module.exports = function(RED) {
}
}
node.send(newMessage);
}
}
}
}
node.linecount = 0;
}
catch(e) { node.error(e,msg); }