fix variable names for test

This commit is contained in:
Dave Conway-Jones 2021-12-26 15:37:41 +00:00
parent cae247160f
commit e5f1029d0c
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
1 changed files with 2 additions and 2 deletions

View File

@ -650,9 +650,9 @@ module.exports = function(RED) {
if (node.newline && node.newline !== "" ) {
chunk += msg.payload.toString();
let parts = chunk.split(node.newline);
for (var i=0; i<parts.length-1; i+=1) {
for (var p=0; p<parts.length-1; p+=1) {
let m = RED.util.cloneMessage(msg);
m.payload = parts[i] + node.newline.trimEnd();
m.payload = parts[p] + node.newline.trimEnd();
nodeSend(m);
}
chunk = parts[parts.length-1];