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/json-to-value.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'third_party/nix/src/libexpr/json-to-value.cc') diff --git a/third_party/nix/src/libexpr/json-to-value.cc b/third_party/nix/src/libexpr/json-to-value.cc index e7c7794d1181..8d84a5ac6901 100644 --- a/third_party/nix/src/libexpr/json-to-value.cc +++ b/third_party/nix/src/libexpr/json-to-value.cc @@ -42,9 +42,8 @@ static string parseJSONString(const char*& s) { throw JSONParseError("invalid escaped character in JSON string"); s++; } else { - res + res += *s++; } - += *s++; } s++; return res; -- cgit 1.4.1