From 36cb552918954118e7b3e699a18df4445f07de22 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 27 May 2022 15:22:47 +0300 Subject: [PATCH] ci: vfmt cmd/tools/vpm.v --- cmd/tools/vpm.v | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/tools/vpm.v b/cmd/tools/vpm.v index 9f090dd8d2..6fa5d5a531 100644 --- a/cmd/tools/vpm.v +++ b/cmd/tools/vpm.v @@ -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,11 +581,11 @@ 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', '') - } + if res.ends_with('.git') { + res = res.replace('.git', '') + } return res }