Allow config.defaultStorageLimit to be zero bytes

This commit is contained in:
Martin Alexander Neumann authored and Martin Alexander Neumann committed 2020-04-11 20:46:09 +02:00
1 parent bd3e18d1a8
commit e3f42cbc20
1 file changed
+1 -1
+1 -1
View File
@@ -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;