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

Missing variable declaration in tail node

This commit is contained in:
Nick O'Leary 2014-06-27 12:29:00 +01:00
parent 6d54050b4f
commit 3fcc1b5680

View File

@ -32,7 +32,7 @@ module.exports = function(RED) {
var msg = {topic:node.filename};
if (node.split) {
var strings = data.toString().split("\n");
for (s in strings) {
for (var s in strings) {
if (strings[s] != "") {
msg.payload = strings[s];
node.send(msg);