[backport] Fix style issues in lib/, tools/, and testament/. Fixes #12687. (#12754)

This commit is contained in:
3n-k1 2019-11-28 02:32:11 -05:00 • committed by Miran
commit 0944b0f441
11 changed files with 109 additions and 109 deletions

View file

@ -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"