Authored by 徐炜

滥用防护

... ... @@ -54,7 +54,8 @@ class ApiCache {
if (err) console.error(err);
if (result.length === 0) {
this._log('empty items')
this._log('empty items');
resolve([]);
}
// for each server...
result.forEach(itemSet => {
... ... @@ -65,6 +66,7 @@ class ApiCache {
if (keys.length === 0) {
this._log('empty item set');
resolve([]);
}
const keyList = [];
... ...