config の値がない場合はスキップするように変更

This commit is contained in:
zztkm 2022-08-12 22:21:27 +09:00
parent 30d4bf2aeb
commit 67e1a6cf25

4
vss.v
View file

@ -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