Browse Source

Allow config.defaultStorageLimit to be zero bytes

master
Martin Alexander Neumann 9 months ago
committed by Martin Alexander Neumann
parent
commit
e3f42cbc20
1 changed files with 1 additions and 1 deletions
  1. 2
      lib/historyKeeper.js

2
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;

Loading…
Cancel
Save