config の値がない場合はスキップするように変更
This commit is contained in:
parent
30d4bf2aeb
commit
67e1a6cf25
1 changed files with 3 additions and 1 deletions
4
vss.v
4
vss.v
|
@ -51,7 +51,9 @@ fn get_config_map() ?map[string]string {
|
|||
config := toml.parse_file(default_config)?
|
||||
|
||||
for param in config_params {
|
||||
v := config.value_opt(param)?
|
||||
v := config.value_opt(param) or {
|
||||
continue
|
||||
}
|
||||
config_map[param] = v.string()
|
||||
}
|
||||
return config_map
|
||||
|
|
Loading…
Reference in a new issue