mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
parseExprFromFile -> evalFile
parseExprFromFile() should be avoided since it doesn't cache anything.
This commit is contained in:
parent
ba75c69e00
commit
23fa7e3606
1 changed files with 2 additions and 4 deletions
|
@ -30,10 +30,8 @@ Value * SourceExprCommand::getSourceExpr(EvalState & state)
|
|||
|
||||
vSourceExpr = state.allocValue();
|
||||
|
||||
if (file != "") {
|
||||
Expr * e = state.parseExprFromFile(resolveExprPath(lookupFileArg(state, file)));
|
||||
state.eval(e, *vSourceExpr);
|
||||
}
|
||||
if (file != "")
|
||||
state.evalFile(lookupFileArg(state, file), *vSourceExpr);
|
||||
|
||||
else {
|
||||
|
||||
|
|
Loading…
Reference in a new issue