[courier/callClient] if there are no executable requests, do nothing
This commit is contained in:
parent
c12f18df27
commit
8fef03b816
|
@ -20,6 +20,8 @@ export default function CourierFetchCallClient(Private, Promise, es, esShardTime
|
||||||
const executable = statuses.filter(isRequest);
|
const executable = statuses.filter(isRequest);
|
||||||
let execCount = executable.length;
|
let execCount = executable.length;
|
||||||
|
|
||||||
|
if (!execCount) return Promise.resolve([]);
|
||||||
|
|
||||||
// resolved by respond()
|
// resolved by respond()
|
||||||
let esPromise;
|
let esPromise;
|
||||||
const defer = Promise.defer();
|
const defer = Promise.defer();
|
||||||
|
|
Loading…
Reference in a new issue