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/libstore/sqlite.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'third_party/nix/src/libstore/sqlite.cc') diff --git a/third_party/nix/src/libstore/sqlite.cc b/third_party/nix/src/libstore/sqlite.cc index 81c3ffcd9d05..5aa661afe055 100644 --- a/third_party/nix/src/libstore/sqlite.cc +++ b/third_party/nix/src/libstore/sqlite.cc @@ -24,9 +24,8 @@ namespace nix { ? fmt("SQLite database '%s' is busy (SQLITE_PROTOCOL)", path) : fmt("SQLite database '%s' is busy", path)); } else { - throw + throw SQLiteError("%s: %s (in '%s')", fs.s, sqlite3_errstr(exterr), path); } - SQLiteError("%s: %s (in '%s')", fs.s, sqlite3_errstr(exterr), path); } SQLite::SQLite(const Path& path) { -- cgit 1.4.1