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

Merge pull request #2344 from 1ft-seabass/fix-70-csv

Fixed the code format of 70-CSV.js from Tab to Space. try again.
This commit is contained in:
Nick O'Leary 2019-10-23 21:31:30 +01:00 committed by GitHub
commit 72a268b70a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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