avoid extra call to store if there are no keys to remove

pull/1/head
ansuz 9 years ago
parent 9a5294016d
commit dcc9810a42

@ -179,6 +179,7 @@ define([
return k.indexOf(hash) === 0;
});
if (!toRemove.length) { return; }
Store.removebatch(toRemove, function (err, data) {
cb(err, data);
});

Loading…
Cancel
Save