Showing
1 changed file
with
3 additions
and
1 deletions
@@ -54,7 +54,8 @@ class ApiCache { | @@ -54,7 +54,8 @@ class ApiCache { | ||
54 | if (err) console.error(err); | 54 | if (err) console.error(err); |
55 | 55 | ||
56 | if (result.length === 0) { | 56 | if (result.length === 0) { |
57 | - this._log('empty items') | 57 | + this._log('empty items'); |
58 | + resolve([]); | ||
58 | } | 59 | } |
59 | // for each server... | 60 | // for each server... |
60 | result.forEach(itemSet => { | 61 | result.forEach(itemSet => { |
@@ -65,6 +66,7 @@ class ApiCache { | @@ -65,6 +66,7 @@ class ApiCache { | ||
65 | 66 | ||
66 | if (keys.length === 0) { | 67 | if (keys.length === 0) { |
67 | this._log('empty item set'); | 68 | this._log('empty item set'); |
69 | + resolve([]); | ||
68 | } | 70 | } |
69 | const keyList = []; | 71 | const keyList = []; |
70 | 72 |
-
Please register or login to post a comment