summary refs log tree commit diff stats
path: root/tools/vccexe/vccenv.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tools/vccexe/vccenv.nim')
-rw-r--r--tools/vccexe/vccenv.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vccexe/vccenv.nim b/tools/vccexe/vccenv.nim
index bd3b0b30a..12a6e6b3d 100644
--- a/tools/vccexe/vccenv.nim
+++ b/tools/vccexe/vccenv.nim
@@ -39,7 +39,7 @@ proc vccEnvVcVarsAllPath*(version: VccEnvVersion = vsUndefined): string =
     for tryVersion in [vs140, vs120, vs110, vs100, vs90]:
       let tryPath = vccEnvVcVarsAllPath(tryVersion)
       if tryPath.len > 0:
-        result = tryPath
+        return tryPath
   else: # Specific version requested
     let key = $version
     let val = getEnv key