From 09cbc431cca08be891e5e792ceda2a34956b2fc8 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 19 May 2020 18:01:12 +0100 Subject: fix(3p/nix): Fix incorrectly braced conditionals and loops Fixes mistakes introduced by clang-tidy in the previous commit. --- third_party/nix/src/libexpr/get-drvs.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'third_party/nix/src/libexpr/get-drvs.cc') diff --git a/third_party/nix/src/libexpr/get-drvs.cc b/third_party/nix/src/libexpr/get-drvs.cc index 16bb03f1d16f..ad7211eaea5b 100644 --- a/third_party/nix/src/libexpr/get-drvs.cc +++ b/third_party/nix/src/libexpr/get-drvs.cc @@ -387,11 +387,10 @@ static void getDerivations(EvalState& state, Value& vIn, } else { - throw + throw TypeError( + "expression does not evaluate to a derivation (or a set or list of " + "those)"); } - TypeError( - "expression does not evaluate to a derivation (or a set or list of " - "those)"); } void getDerivations(EvalState& state, Value& v, const string& pathPrefix, -- cgit 1.4.1