fixes a strange issue most likely caused by a git merge (#20822)

This commit is contained in:
Andreas Rumpf
2022-11-12 13:12:28 +01:00
committed by GitHub
parent c75e6f3583
commit 852cf596ed

View File

@@ -181,15 +181,13 @@ proc setupVM*(module: PSym; cache: IdentCache; scriptName: string;
options.cppDefine(conf, a.getString(0))
cbexc stdinReadLine, EOFError:
if defined(nimsuggest) or graph.config.cmd == cmdCheck:
discard
else:
setResult(a, "")
else:
setResult(a, stdin.readLine())
cbexc stdinReadAll, EOFError:
if defined(nimsuggest) or graph.config.cmd == cmdCheck:
discard
else:
setResult(a, "")
else:
setResult(a, stdin.readAll())
proc runNimScript*(cache: IdentCache; scriptName: AbsoluteFile;