Fix style inconsistencies due to the previous commit
This commit is contained in:
parent
ebaf603c84
commit
46aacf917f
10 changed files with 85 additions and 85 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue