Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed May 6, 2024
1 parent ce91977 commit d32c8e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/credentials_provider_sts.c
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ struct aws_credentials_provider *aws_credentials_provider_new_sts(
on_done:
aws_tls_connection_options_clean_up(&tls_connection_options);
aws_string_destroy(region);
if (result == AWS_OP_ERR) {
if (result != AWS_OP_SUCCESS) {
provider = aws_credentials_provider_release(provider);
}
return provider;
Expand Down
2 changes: 1 addition & 1 deletion tests/credentials_provider_sts_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ static int s_aws_sts_tester_init(struct aws_allocator *allocator) {
}

/*
* set the environment so that it doesn't messes with tests
* set the environment so that it doesn't mess with tests
*/
aws_unset_environment_value(s_region_env_variable_name);
struct aws_string *cur_directory = aws_string_new_from_c_str(allocator, ".");
Expand Down

0 comments on commit d32c8e6

Please sign in to comment.