Fix to not use in operator to check if a value is in an array

Change-Id: I1e46c54484a38108f3de8a14d0abb27e7920d95d
diff --git a/package.json b/package.json
index 0c4b4e7..fae646e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
     "name": "cord_workflow_controller",
-    "version": "0.5.4",
+    "version": "0.5.5",
     "description": "CORD Workflow Controller",
     "main": "src/server.js",
     "scripts": {
diff --git a/src/controllers/eventrouter.js b/src/controllers/eventrouter.js
index 5469fc2..b6a6b50 100644
--- a/src/controllers/eventrouter.js
+++ b/src/controllers/eventrouter.js
@@ -193,7 +193,7 @@
             return false;
         }
 
-        if(status in ['success', 'failed', 'end']) {
+        if(status === 'success' || status === 'failed' || status === 'end') {
             removeWorkflowRun(workflowRunId);
         }
         return true;