Browse Source
Merge pull request #525 from ma-neumann/master
Allow config.defaultStorageLimit to be zero bytes
master
ansuz
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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; |
|
|
|
|
|
|
|
|