Skip to content

Commit b1d070f

Browse files
committed
Misc cleanup
1 parent 701d39a commit b1d070f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/aws_secret.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ static string certFileLocations[] = {
3737

3838
//! Parse and set the remaining options
3939
static void ParseCoreS3Config(CreateSecretInput &input, KeyValueSecret &secret) {
40-
vector<string> options = {"key_id", "secret", "region",
41-
"endpoint", "session_token", "endpoint",
42-
"url_style", "use_ssl", "s3_url_compatibility_mode"};
40+
vector<string> options = {"key_id", "secret", "region",
41+
"endpoint", "session_token", "url_style",
42+
"use_ssl", "s3_url_compatibility_mode"};
4343
for (const auto &val : options) {
4444
auto set_region_param = input.options.find(val);
4545
if (set_region_param != input.options.end()) {
@@ -291,7 +291,6 @@ static unique_ptr<BaseSecret> CreateAWSSecretFromCredentialChain(ClientContext &
291291
result->secret_map["refresh_info"] = Value::STRUCT(struct_fields);
292292
}
293293

294-
AwsSetCredentialsResult ret;
295294
if (!credentials.IsExpiredOrEmpty()) {
296295
result->secret_map["key_id"] = Value(credentials.GetAWSAccessKeyId());
297296
result->secret_map["secret"] = Value(credentials.GetAWSSecretKey());

0 commit comments

Comments
 (0)