From 3526af7ec50e46aaa73d038566f42554f70f27b0 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 4 Aug 2025 19:48:20 +0100 Subject: Fix a lot of clang-tidy warnings --- libpqpp/pq-bulkselectcommand.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'libpqpp/pq-bulkselectcommand.cpp') diff --git a/libpqpp/pq-bulkselectcommand.cpp b/libpqpp/pq-bulkselectcommand.cpp index 303ed53..4fbb393 100644 --- a/libpqpp/pq-bulkselectcommand.cpp +++ b/libpqpp/pq-bulkselectcommand.cpp @@ -9,8 +9,7 @@ PQ::BulkSelectCommand::BulkSelectCommand(Connection * conn, const std::string & sql, const PQ::CommandOptionsCPtr & pqco, const DB::CommandOptionsCPtr & opts) : - DB::Command(sql), - PQ::SelectBase(sql, pqco), PQ::PreparedStatement(conn, sql, opts) + DB::Command(sql), PQ::SelectBase(sql, pqco), PQ::PreparedStatement(conn, sql, opts) { } @@ -34,8 +33,6 @@ PQ::BulkSelectCommand::fetch() if (++tuple < nTuples) { return true; } - else { - execRes.reset(); - return false; - } + execRes.reset(); + return false; } -- cgit v1.2.3