From e3f42cbc20ecec8b4e0ed8d453d12ae31197a1d6 Mon Sep 17 00:00:00 2001 From: Martin Alexander Neumann Date: Sat, 11 Apr 2020 20:45:28 +0200 Subject: [PATCH] Allow config.defaultStorageLimit to be zero bytes --- lib/historyKeeper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/historyKeeper.js b/lib/historyKeeper.js index f70dba006..1fc2a2f2f 100644 --- a/lib/historyKeeper.js +++ b/lib/historyKeeper.js @@ -98,7 +98,7 @@ module.exports.create = function (config, cb) { paths.staging = keyOrDefaultString('blobStagingPath', './blobstage'); paths.blob = keyOrDefaultString('blobPath', './blob'); - Env.defaultStorageLimit = typeof(config.defaultStorageLimit) === 'number' && config.defaultStorageLimit > 0? + Env.defaultStorageLimit = typeof(config.defaultStorageLimit) === 'number' && config.defaultStorageLimit >= 0? config.defaultStorageLimit: Core.DEFAULT_LIMIT;