Remove FIXME

We don't need to return the accessor here (in fact it rarely makes
sense to return a path from the EvalCache).
This commit is contained in:
Eelco Dolstra 2022-08-29 15:43:43 +02:00
parent 7da3a30c90
commit 301f388716

View file

@ -443,7 +443,6 @@ Value & AttrCursor::forceValue()
cachedValue = {root->db->setString(getKey(), v.string.s, v.string.context), cachedValue = {root->db->setString(getKey(), v.string.s, v.string.context),
string_t{v.string.s, {}}}; string_t{v.string.s, {}}};
else if (v.type() == nPath) { else if (v.type() == nPath) {
// FIXME: take accessor into account?
auto path = v.path().path; auto path = v.path().path;
cachedValue = {root->db->setString(getKey(), path.abs()), string_t{path.abs(), {}}}; cachedValue = {root->db->setString(getKey(), path.abs()), string_t{path.abs(), {}}};
} }