Skip to content

Commit

Permalink
fix(circuit): remove unneeded resolve() (#377)
Browse files Browse the repository at this point in the history
* remove unneeded resolve()
  • Loading branch information
tjenkinson authored and lholmquist committed Oct 18, 2019
1 parent 57df828 commit cde55eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/circuit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit cde55eb

Please sign in to comment.