add -d:nimStrictMode in CI to keep code from regressing; fixes ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)
This commit is contained in:
parent
35e14998ec
commit
31bb67a309
20 changed files with 43 additions and 23 deletions
|
|
@ -23,7 +23,7 @@ proc getMachine*(): MachineId =
|
|||
var name = execProcess("hostname").strip
|
||||
if name.len == 0:
|
||||
name = when defined(posix): getEnv("HOSTNAME")
|
||||
else: getEnv("COMPUTERNAME").string
|
||||
else: getEnv("COMPUTERNAME")
|
||||
if name.len == 0:
|
||||
quit "cannot determine the machine name"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue