mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
Fix env_val bug
This commit is contained in:
parent
90945d1621
commit
afd71cc82d
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ options.forEach(option => {
|
|||
|
||||
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 => {
|
||||
let response = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue