Explorar o código

type should never be null

jomo %!s(int64=10) %!d(string=hai) anos
pai
achega
daea5be5f1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/helpers.js

+ 1 - 1
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