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
commit 852cf596ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;