chore(3p/nix/libexpr): Minor readability improvements in eval/value
This commit is contained in:
parent
92792264f7
commit
da4ca4e02f
4 changed files with 7 additions and 19 deletions
4
third_party/nix/src/libexpr/eval.cc
vendored
4
third_party/nix/src/libexpr/eval.cc
vendored
|
|
@ -815,8 +815,8 @@ void ExprAttrs::eval(EvalState& state, Env& env, Value& value) {
|
|||
size_t displ = 0;
|
||||
for (auto& attr : attrs) {
|
||||
Value* vAttr;
|
||||
vAttr = attr.second.e->maybeThunk(state,
|
||||
attr.second.inherited ? env : env2);
|
||||
vAttr =
|
||||
attr.second.e->maybeThunk(state, attr.second.inherited ? env : env2);
|
||||
env2.values[displ++] = vAttr;
|
||||
value.attrs->push_back(Attr(attr.first, vAttr, &attr.second.pos));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue