Fix equality check with nodejs (not ==, === is right)

Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/6c09a9ee
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/6c09a9ee
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/6c09a9ee

Branch: refs/heads/0.9.3-branch
Commit: 6c09a9ee4a20cd73bb24b195f049f23d99a04d2f
Parents: 8b8a443
Author: Jungtaek Lim <[email protected]>
Authored: Sat Oct 11 22:16:43 2014 +0900
Committer: Jungtaek Lim <[email protected]>
Committed: Sat Oct 11 22:16:43 2014 +0900

----------------------------------------------------------------------
 storm-core/src/dev/resources/storm.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/6c09a9ee/storm-core/src/dev/resources/storm.js
----------------------------------------------------------------------
diff --git a/storm-core/src/dev/resources/storm.js 
b/storm-core/src/dev/resources/storm.js
index 50cc920..862dba5 100755
--- a/storm-core/src/dev/resources/storm.js
+++ b/storm-core/src/dev/resources/storm.js
@@ -244,7 +244,7 @@ BasicBolt.prototype.handleNewCommand = function(command) {
     var self = this;
     var tup = new Tuple(command["id"], command["comp"], command["stream"], 
command["task"], command["tuple"]);
 
-    if (tup.task == -1 && tup.stream == "__heartbeat") {
+    if (tup.task === -1 && tup.stream === "__heartbeat") {
         self.sync();
         return;
     }

Reply via email to