Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Aug 2, 2024
1 parent 6747c48 commit 25cea57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion source/endpoints_ruleset.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@ static int s_on_parameter_key(

struct aws_json_value *deprecated_node = aws_json_value_get_from_object_c_str(value, "deprecated");
if (deprecated_node != NULL) {
struct aws_json_value *deprecated_message_node = aws_json_value_get_from_object_c_str(deprecated_node, "message");
struct aws_json_value *deprecated_message_node =
aws_json_value_get_from_object_c_str(deprecated_node, "message");
if (deprecated_message_node != NULL &&
aws_json_value_get_string(deprecated_message_node, &parameter->deprecated_message)) {
AWS_LOGF_ERROR(AWS_LS_SDKUTILS_ENDPOINTS_PARSING, "Unexpected value for deprecated message.");
Expand Down
3 changes: 1 addition & 2 deletions source/endpoints_types_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ int aws_endpoints_deep_copy_parameter_value(
AWS_LOGF_ERROR(AWS_LS_SDKUTILS_ENDPOINTS_RESOLVE, "Unexpected value type.");
return aws_raise_error(AWS_ERROR_INVALID_STATE);
}
aws_byte_cursor_is_valid
return AWS_OP_SUCCESS;
aws_byte_cursor_is_valid return AWS_OP_SUCCESS;

on_error:
aws_endpoints_value_clean_up(to);
Expand Down

0 comments on commit 25cea57

Please sign in to comment.