Skip to content

Commit

Permalink
feat: add option to disable snapshots
Browse files Browse the repository at this point in the history
Add a missing semicolon
  • Loading branch information
Gautam Jethwani committed Jul 29, 2023
1 parent dfe52d2 commit 7dd76f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/circuit.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class CircuitBreaker extends EventEmitter {
this.options.cacheTTL = options.cacheTTL ?? 0;
this.options.cacheGetKey = options.cacheGetKey ??
((...args) => JSON.stringify(args));
this.options.enableSnapshots = options.enableSnapshots !== false
this.options.enableSnapshots = options.enableSnapshots !== false;

// Set default cache transport if not provided
if (this.options.cache) {
Expand Down

0 comments on commit 7dd76f0

Please sign in to comment.