mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Allow '0' for minimum package age setting.
This commit is contained in:
parent
4623f3eff8
commit
3d1e4b0489
3 changed files with 119 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ function validateMinimumPackageAgeHours(value) {
|
|||
*/
|
||||
export function getMinimumPackageAgeHours() {
|
||||
const config = readConfigFile();
|
||||
if (config.minimumPackageAgeHours) {
|
||||
if (config.minimumPackageAgeHours !== undefined) {
|
||||
const validated = validateMinimumPackageAgeHours(
|
||||
config.minimumPackageAgeHours
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue