Fix env_val bug
This commit is contained in:
parent
90945d1621
commit
afd71cc82d
|
@ -215,7 +215,7 @@ options.forEach(option => {
|
||||||
|
|
||||||
const parsed_val = parser(env_val);
|
const parsed_val = parser(env_val);
|
||||||
|
|
||||||
const value = parsed_val || option.default;
|
const value = env_val === undefined ? option.default : parsed_val;
|
||||||
|
|
||||||
option.validators.for_each(validator => {
|
option.validators.for_each(validator => {
|
||||||
let response = null;
|
let response = null;
|
||||||
|
|
Loading…
Reference in New Issue