summary refs log tree commit diff stats
path: root/testament/backend.nim
diff options
context:
space:
mode:
author3n-k1 <51172302+3n-k1@users.noreply.github.com>2019-11-28 02:32:11 -0500
committerMiran <narimiran@disroot.org>2019-11-28 08:32:11 +0100
commit0944b0f4415a262968cf68f1dbb035cfc3326680 (patch)
treef352639cd219382cb1520ff15366237c45ebc320 /testament/backend.nim
parenta7aeabb9d2c70a5d9bd89abf3eb08372d2c6d9d0 (diff)
downloadNim-0944b0f4415a262968cf68f1dbb035cfc3326680.tar.gz
[backport] Fix style issues in lib/, tools/, and testament/. Fixes #12687. (#12754)
Diffstat (limited to 'testament/backend.nim')
-rw-r--r--testament/backend.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/testament/backend.nim b/testament/backend.nim
index c2658d6a0..0a6d7d8b9 100644
--- a/testament/backend.nim
+++ b/testament/backend.nim
@@ -23,8 +23,8 @@ var
 proc getMachine*(): MachineId =
   var name = execProcess("hostname").string.strip
   if name.len == 0:
-    name = when defined(posix): getenv("HOSTNAME").string
-           else: getenv("COMPUTERNAME").string
+    name = when defined(posix): getEnv("HOSTNAME").string
+           else: getEnv("COMPUTERNAME").string
   if name.len == 0:
     quit "cannot determine the machine name"