Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Vyas Ramasubramani <[email protected]>
  • Loading branch information
madsbk and vyasr authored Oct 11, 2024
1 parent 70dc29c commit 5f48899
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cpp/include/kvikio/remote_handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ class S3Endpoint : public RemoteEndpoint {
std::optional<std::string> const& aws_region,
std::optional<std::string> aws_endpoint_url)
{
std::string endpoint_url =
auto const endpoint_url =
parse_aws_argument(std::move(aws_endpoint_url), "AWS_ENDPOINT_URL", "", true);
std::stringstream ss;
if (endpoint_url.empty()) {
std::string region =
auto const region =
parse_aws_argument(std::move(aws_region),
"AWS_DEFAULT_REGION",
"S3: must provide `aws_region` if AWS_DEFAULT_REGION isn't set.");
Expand Down Expand Up @@ -250,17 +250,17 @@ class S3Endpoint : public RemoteEndpoint {
std::optional<std::string> aws_secret_access_key = std::nullopt)
: _url{std::move(url)}
{
std::string region =
auto const region =
parse_aws_argument(std::move(aws_region),
"AWS_DEFAULT_REGION",
"S3: must provide `aws_region` if AWS_DEFAULT_REGION isn't set.");

std::string access_key =
auto const access_key =
parse_aws_argument(std::move(aws_access_key),
"AWS_ACCESS_KEY_ID",
"S3: must provide `aws_access_key` if AWS_ACCESS_KEY_ID isn't set.");

std::string secret_access_key = parse_aws_argument(
auto const secret_access_key = parse_aws_argument(
std::move(aws_secret_access_key),
"AWS_SECRET_ACCESS_KEY",
"S3: must provide `aws_secret_access_key` if AWS_SECRET_ACCESS_KEY isn't set.");
Expand Down

0 comments on commit 5f48899

Please sign in to comment.