[courier/callClient] if there are no executable requests, do nothing

This commit is contained in:
spalger 2016-03-24 14:36:18 -07:00
parent c12f18df27
commit 8fef03b816

View file

@ -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();