From cde55eb2a1e13598a29d4bae46585c8d413141cb Mon Sep 17 00:00:00 2001 From: Tom Jenkinson Date: Fri, 18 Oct 2019 13:42:56 +0100 Subject: [PATCH] fix(circuit): remove unneeded resolve() (#377) * remove unneeded resolve() --- lib/circuit.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/circuit.js b/lib/circuit.js index 337e79d3..a1856343 100644 --- a/lib/circuit.js +++ b/lib/circuit.js @@ -476,8 +476,7 @@ class CircuitBreaker extends EventEmitter { const latency = Date.now() - latencyStartTime; this.semaphore.release(); this.emit('timeout', error, latency, args); - resolve(handleError( - error, this, timeout, args, latency, resolve, reject)); + handleError(error, this, timeout, args, latency, resolve, reject); }, this.options.timeout); }