From 8a7390ac746b1d61bd56e188e7e03936e0fd796f Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Fri, 5 Jul 2024 10:45:56 +0200 Subject: [PATCH] spelling --- index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index f2e87523..b18dc2f3 100644 --- a/index.js +++ b/index.js @@ -130,7 +130,7 @@ module.exports = class Autobase extends ReadyResource { this.view = null this.system = null this.version = -1 - this.interupted = false + this.interrupted = false this.maxCacheSize = handlers.maxCacheSize || 0 // 0 means the hyperbee default cache size will be used @@ -349,9 +349,9 @@ module.exports = class Autobase extends ReadyResource { } } - interupt (err) { - this.interupted = true - throw err // throw to interupt apply + interrupt (err) { + this.interrupted = true + throw err // throw to interrupt apply } async flush () { @@ -620,9 +620,9 @@ module.exports = class Autobase extends ReadyResource { if (this.closing) return this.close().catch(safetyCatch) - if (this.interupted) { - this.emit('interupt', err) - this.interupted = false + if (this.interrupted) { + this.emit('interrupt', err) + this.interrupted = false return }