Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jan 29, 2025
1 parent dc70a7c commit dfd8bde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion source/credentials_provider_sts.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ static int s_sts_xml_on_AssumedRoleUser_child(struct aws_xml_node *node, void *u
}
struct aws_byte_cursor account_id;
AWS_ZERO_STRUCT(account_id);
/* The format of the Arn is arn:partition:service:region:account-id:resource-ID and we need to parse the account-id out of it which is the fifth element. */
/* The format of the Arn is arn:partition:service:region:account-id:resource-ID and we need to parse the
* account-id out of it which is the fifth element. */
for (int i = 0; i < 5; i++) {
if (!aws_byte_cursor_next_split(&arn_cursor, ':', &account_id)) {
AWS_LOGF_ERROR(
Expand Down
3 changes: 2 additions & 1 deletion source/credentials_provider_sts_web_identity.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ static int s_stswebid_xml_on_AssumedRoleUser_child(struct aws_xml_node *node, vo
}
struct aws_byte_cursor account_id;
AWS_ZERO_STRUCT(account_id);
/* The format of the Arn is arn:partition:service:region:account-id:resource-ID and we need to parse the account-id out of it which is the fifth element. */
/* The format of the Arn is arn:partition:service:region:account-id:resource-ID and we need to parse the
* account-id out of it which is the fifth element. */
for (int i = 0; i < 5; i++) {
if (!aws_byte_cursor_next_split(&arn_cursor, ':', &account_id)) {
AWS_LOGF_ERROR(
Expand Down

0 comments on commit dfd8bde

Please sign in to comment.