fix return

pull/13705/head
JalonSolov 2022-03-09 14:50:50 -05:00
parent 9bb848bb61
commit 2335a2ea4a
1 changed files with 4 additions and 2 deletions

View File

@ -761,11 +761,13 @@ pub fn execute_or_exit(cmd string) Result {
// quoted path - return a quoted version of the path, depending on the platform. // quoted path - return a quoted version of the path, depending on the platform.
pub fn quoted_path(path string) string { pub fn quoted_path(path string) string {
$if windows { $if windows {
mut quoted_path := ''
if path.ends_with(path_separator) { if path.ends_with(path_separator) {
return '"${path + path_separator}"' quoted_path = '"${path + path_separator}"'
} else { } else {
return '"$path"' quoted_path = '"$path"'
} }
return quoted_path
} $else { } $else {
return "'$path'" return "'$path'"
} }