style: clang-tidy auto fixes (#2958)

Co-authored-by: godexsoft <385326+godexsoft@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2026-02-23 13:54:07 +00:00
committed by GitHub
parent 2d6f82c27f
commit af736717fc
38 changed files with 138 additions and 72 deletions

View File

@@ -85,10 +85,11 @@ Handle::disconnect() const
Handle::FutureType
Handle::asyncReconnect(std::string_view keyspace) const
{
if (auto rc = asyncDisconnect().await(); not rc) // sync
if (auto rc = asyncDisconnect().await(); not rc) { // sync
throw std::logic_error(
"Reconnect to keyspace '" + std::string{keyspace} + "' failed: " + rc.error()
);
}
return asyncConnect(keyspace);
}

View File

@@ -96,10 +96,11 @@ public:
{
using std::to_string;
auto throwErrorIfNeeded = [idx](CassError rc, std::string_view label) {
if (rc != CASS_OK)
if (rc != CASS_OK) {
throw std::logic_error(
fmt::format("[{}] at idx {}: {}", label, idx, cass_error_desc(rc))
);
}
};
auto bindBytes = [this, idx](auto const* data, size_t size) {