Allow config.defaultStorageLimit to be zero bytes

This commit is contained in:
Martin Alexander Neumann 2020-04-11 20:45:28 +02:00 committed by Martin Alexander Neumann
parent bd3e18d1a8
commit e3f42cbc20

View File

@ -98,7 +98,7 @@ module.exports.create = function (config, cb) {
paths.staging = keyOrDefaultString('blobStagingPath', './blobstage'); paths.staging = keyOrDefaultString('blobStagingPath', './blobstage');
paths.blob = keyOrDefaultString('blobPath', './blob'); 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: config.defaultStorageLimit:
Core.DEFAULT_LIMIT; Core.DEFAULT_LIMIT;