From 96820418b55b84541409e263681614e45117f340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20L=C3=A9caud=C3=A9?= Date: Thu, 10 Nov 2016 11:17:27 -0500 Subject: [PATCH] Fix comparison to "" in tcpin --- nodes/core/io/31-tcpin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/core/io/31-tcpin.js b/nodes/core/io/31-tcpin.js index c5f773e1c..71c9a3def 100644 --- a/nodes/core/io/31-tcpin.js +++ b/nodes/core/io/31-tcpin.js @@ -83,7 +83,7 @@ module.exports = function(RED) { } }); client.on('end', function() { - if (!node.stream || (node.datatype == "utf8" && node.newline != "" && buffer.length > 0)) { + if (!node.stream || (node.datatype == "utf8" && node.newline !== "" && buffer.length > 0)) { var msg = {topic:node.topic, payload:buffer}; msg._session = {type:"tcp",id:id}; if (buffer.length !== 0) {