Skip to content

Commit 0f4cea7

Browse files
updated the condition to reject with error message
1 parent 8868257 commit 0f4cea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/lib/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export function sendRequest(queryObject, options) {
288288
} else {
289289
if (cachePolicy === 2 && self.provider !== null) {
290290
self.provider.get(hashQuery, function(err, _data) {
291-
if (err || !_data || (_data.entries && _data.entries.length === 0) || (_data.assets && _data.assets.length === 0)) {
291+
if (err || !_data || (_data.entries.length === 0 && _data.assets.length === 0)) {
292292
return reject({ error_code: 141, error_message: 'The requested entry doesn\'t exist.' });
293293
}
294294
getCacheCallback()(err, _data);

0 commit comments

Comments
 (0)