aboutsummaryrefslogtreecommitdiff
path: root/src/nix/eval.cc
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2020-12-17 14:45:45 +0100
committerSilvan Mosberger <contact@infinisil.com>2020-12-17 14:45:45 +0100
commit12e65078ef5c511196c9e48f7fdf71f6c0e5c89f (patch)
tree1d2f6489422eb51bcb55b338125e2efab7faefed /src/nix/eval.cc
parentd67e02919c7f941615407dfd14cfdab6a28c4c26 (diff)
Rename Value::normalType() -> Value::type()
Diffstat (limited to 'src/nix/eval.cc')
-rw-r--r--src/nix/eval.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/eval.cc b/src/nix/eval.cc
index bba3b1bc6..ea82e5300 100644
--- a/src/nix/eval.cc
+++ b/src/nix/eval.cc
@@ -97,10 +97,10 @@ struct CmdEval : MixJSON, InstallableCommand
recurse = [&](Value & v, const Pos & pos, const Path & path)
{
state->forceValue(v);
- if (v.normalType() == nString)
+ if (v.type() == nString)
// FIXME: disallow strings with contexts?
writeFile(path, v.string.s);
- else if (v.normalType() == nAttrs) {
+ else if (v.type() == nAttrs) {
if (mkdir(path.c_str(), 0777) == -1)
throw SysError("creating directory '%s'", path);
for (auto & attr : *v.attrs)