chore(3p/nix/libexpr): Minor readability improvements in eval/value

This commit is contained in:
Vincent Ambo 2020-05-23 04:43:16 +01:00
parent 92792264f7
commit da4ca4e02f
4 changed files with 7 additions and 19 deletions

View file

@ -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));
}