ci: vfmt cmd/tools/vpm.v

master
Delyan Angelov 2022-05-27 15:22:47 +03:00
parent 156aa661ee
commit 36cb552918
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 5 additions and 5 deletions

View File

@ -376,7 +376,7 @@ fn vpm_update(m []string) {
}
mut errors := 0
for modulename in module_names {
zname := url_to_module_name( modulename )
zname := url_to_module_name(modulename)
final_module_path := valid_final_path_of_existing_module(modulename) or { continue }
os.chdir(final_module_path) or {}
println('Updating module "$zname" in "$final_module_path" ...')
@ -581,7 +581,7 @@ fn mod_name_info(mod_name string) ModNameInfo {
return info
}
fn url_to_module_name( modulename string ) string {
fn url_to_module_name(modulename string) string {
mut res := if mod := get_mod_by_url(modulename) { mod.name } else { modulename }
if res.ends_with('.git') {
res = res.replace('.git', '')