Skip to content

Commit

Permalink
fix mutation error
Browse files Browse the repository at this point in the history
  • Loading branch information
nedpals committed Jan 4, 2020
1 parent 9db8a2f commit 8608f3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/utils.v
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ fn package_name(path_or_name string) string {
}

fn rm_test_execs(dir string) {
mut base_exec_name := filepath.join(os.getwd(), dir.all_before('.v'))
mut base_exec_name := ''
base_exec_name = filepath.join(os.getwd(), dir.all_before('.v'))
if !os.exists('${base_exec_name}.exe') || !os.exists(base_exec_name) { return }

$if windows {
Expand Down

0 comments on commit 8608f3e

Please sign in to comment.