diff --git a/nixd/lib/Eval/AttrSetProvider.cpp b/nixd/lib/Eval/AttrSetProvider.cpp index f0a17412c..e4c8e8340 100644 --- a/nixd/lib/Eval/AttrSetProvider.cpp +++ b/nixd/lib/Eval/AttrSetProvider.cpp @@ -196,9 +196,8 @@ void AttrSetProvider::onAttrPathInfo( using RespT = AttrPathInfoResponse; Reply([&]() -> llvm::Expected { try { - if (AttrPath.empty()) { + if (AttrPath.empty()) return error("attrpath is empty!"); - } nix::Value &V = nixt::selectStrings(state(), Nixpkgs, AttrPath); state().forceValue(V, nix::noPos);