From 12ba7750eab4d337ddf5053f06cf97187f57b5a3 Mon Sep 17 00:00:00 2001 From: Christophe Diederichs Date: Thu, 13 Jun 2024 15:56:41 +0100 Subject: [PATCH] condition should be >= --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6f271563..86c5442a 100644 --- a/index.js +++ b/index.js @@ -502,7 +502,7 @@ module.exports = class Autobase extends ReadyResource { writers.set(hex, w) } - if (w.writer.length > length) continue + if (w.writer.length >= length) continue if (length > w.end) w.end = length