aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval-cache.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-04-25 16:52:02 +0200
committerEelco Dolstra <edolstra@gmail.com>2023-04-25 16:52:02 +0200
commit87f676b3a0dcc990c795abd93411f5b179373e60 (patch)
tree0cda0ba20b1a1460e46c9dff2bc244bf48a7e009 /src/libexpr/eval-cache.cc
parenta74d397549f987ee430be01f563e3fe9226ecb86 (diff)
Formatting
Diffstat (limited to 'src/libexpr/eval-cache.cc')
-rw-r--r--src/libexpr/eval-cache.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/eval-cache.cc b/src/libexpr/eval-cache.cc
index ac646af8a..9e734e654 100644
--- a/src/libexpr/eval-cache.cc
+++ b/src/libexpr/eval-cache.cc
@@ -625,7 +625,8 @@ string_t AttrCursor::getStringWithContext()
NixStringContext context;
copyContext(v, context);
return {v.string.s, std::move(context)};
- } else if (v.type() == nPath)
+ }
+ else if (v.type() == nPath)
return {v.path().to_string(), {}};
else
root->state.error("'%s' is not a string but %s", getAttrPathStr()).debugThrow<TypeError>();