🎨 v fmt
This commit is contained in:
parent
5870036619
commit
06dcc11214
2 changed files with 3 additions and 5 deletions
4
vss.v
4
vss.v
|
@ -51,9 +51,7 @@ fn get_config_map() ?map[string]string {
|
||||||
config := toml.parse_file(default_config)?
|
config := toml.parse_file(default_config)?
|
||||||
|
|
||||||
for param in config_params {
|
for param in config_params {
|
||||||
v := config.value_opt(param) or {
|
v := config.value_opt(param) or { continue }
|
||||||
continue
|
|
||||||
}
|
|
||||||
config_map[param] = v.string()
|
config_map[param] = v.string()
|
||||||
}
|
}
|
||||||
return config_map
|
return config_map
|
||||||
|
|
|
@ -10,6 +10,6 @@ fn normalise_paths(paths []string) []string {
|
||||||
|
|
||||||
fn test_get_html_filename() {
|
fn test_get_html_filename() {
|
||||||
test_path := 'index.md'
|
test_path := 'index.md'
|
||||||
html_name := get_html_filename(test_path)
|
html_name := get_html_filename(test_path)
|
||||||
assert html_name == 'index.html'
|
assert html_name == 'index.html'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue