commit | cd56aa90ce3dc32645d7360c48094a41d9a1ae15 | [log] [tgz] |
---|---|---|
author | Illyoung Choi <iychoi@opennetworking.org> | Tue Jul 30 18:27:24 2019 -0700 |
committer | Illyoung Choi <iychoi@opennetworking.org> | Tue Jul 30 18:27:24 2019 -0700 |
tree | 89b5a1f27b4429820d96b572baa95acde6815174 | |
parent | 10c285a3e5e380d3119d13d5f25f2b43f9a96537 [diff] [blame] |
Fix to not use in operator to check if a value is in an array Change-Id: I1e46c54484a38108f3de8a14d0abb27e7920d95d
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;