Skip to content

Commit

Permalink
fix callback
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Aug 6, 2023
1 parent 3d1bcfe commit e43bce2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions source/credentials_provider_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ static int s_get_credentials_from_process(
};

struct aws_run_command_result result;
int ret = AWS_OP_ERR;
if (aws_run_command_result_init(provider->allocator, &result)) {
goto on_finish;
}
Expand Down Expand Up @@ -71,11 +70,8 @@ static int s_get_credentials_from_process(
AWS_LS_AUTH_CREDENTIALS_PROVIDER,
"(id=%p) Process credentials provider successfully sourced credentials.",
(void *)provider);
ret = AWS_OP_SUCCESS;

on_finish:

;
int error_code = AWS_ERROR_SUCCESS;
if (credentials == NULL) {
error_code = aws_last_error();
Expand All @@ -87,7 +83,7 @@ static int s_get_credentials_from_process(
callback(credentials, error_code, user_data);
aws_run_command_result_cleanup(&result);
aws_credentials_release(credentials);
return ret;
return AWS_OP_SUCCESS;
}

static void s_credentials_provider_process_destroy(struct aws_credentials_provider *provider) {
Expand Down

0 comments on commit e43bce2

Please sign in to comment.