From daea5be5f17b441321ab0ec1715fec18b70ba150 Mon Sep 17 00:00:00 2001 From: jomo Date: Wed, 28 Jan 2015 23:46:29 +0100 Subject: [PATCH] type should never be null --- modules/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/helpers.js b/modules/helpers.js index 5bb9636..cf89a0c 100644 --- a/modules/helpers.js +++ b/modules/helpers.js @@ -101,7 +101,7 @@ function store_cape(uuid, profile, details, callback) { var currently_running = []; function callback_for(uuid, type, err, hash) { for (var i = 0; i < currently_running.length; i++) { - if (currently_running[i].uuid === uuid && (currently_running[i].type === type || type === null)) { + if (currently_running[i].uuid === uuid && currently_running[i].type === type) { var will_call = currently_running[i]; will_call.callback(err, hash); currently_running.splice(i, 1); // remove from array