diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 4f506a522a6..99868ee4387 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -2353,8 +2353,6 @@ static void prim_path(EvalState & state, const PosIdx pos, Value * * args, Value state.forceAttrs(*args[0], pos, "while evaluating the argument passed to 'builtins.path'"); - state.forceAttrs(*args[0], pos, "while evaluating the argument passed to 'builtins.path'"); - for (auto & attr : *args[0]->attrs) { auto n = state.symbols[attr.name]; if (n == "path")