From 7dd76f0642c4b7aa1eaa17972cdd4442977a8abc Mon Sep 17 00:00:00 2001 From: Gautam Jethwani Date: Sun, 30 Jul 2023 04:12:48 +0800 Subject: [PATCH] feat: add option to disable snapshots Add a missing semicolon --- lib/circuit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/circuit.js b/lib/circuit.js index fcd46f70..69c21ac0 100644 --- a/lib/circuit.js +++ b/lib/circuit.js @@ -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) {