Fix clang-tidy build

This commit is contained in:
Robert Schulze 2024-12-13 10:58:00 +00:00
parent 7b75a4c237
commit 5f00c1e614
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -53,7 +53,8 @@ std::pair<std::string, std::string> parseCatalogCredential(const std::string & c
/// Parse a string of format "<client_id>:<client_secret>" /// Parse a string of format "<client_id>:<client_secret>"
/// into separare strings client_id and client_secret. /// into separare strings client_id and client_secret.
std::string client_id, client_secret; std::string client_id;
std::string client_secret;
if (!catalog_credential.empty()) if (!catalog_credential.empty())
{ {
auto pos = catalog_credential.find(':'); auto pos = catalog_credential.find(':');
@ -623,7 +624,9 @@ bool RestCatalog::getTableMetadataImpl(
static constexpr auto secret_access_key_str = "s3.secret-access-key"; static constexpr auto secret_access_key_str = "s3.secret-access-key";
static constexpr auto session_token_str = "s3.session-token"; static constexpr auto session_token_str = "s3.session-token";
std::string access_key_id, secret_access_key, session_token; std::string access_key_id;
std::string secret_access_key;
std::string session_token;
if (config_object->has(access_key_id_str)) if (config_object->has(access_key_id_str))
access_key_id = config_object->get(access_key_id_str).extract<String>(); access_key_id = config_object->get(access_key_id_str).extract<String>();
if (config_object->has(secret_access_key_str)) if (config_object->has(secret_access_key_str))