[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);
|
||||
let execCount = executable.length;
|
||||
|
||||
if (!execCount) return Promise.resolve([]);
|
||||
|
||||
// resolved by respond()
|
||||
let esPromise;
|
||||
const defer = Promise.defer();
|
||||
|
|
Loading…
Reference in a new issue