Skip to content

Commit

Permalink
remove extraneous pointer conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
anGie44 committed Nov 23, 2021
1 parent b9edd00 commit 1b407c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/service/elb/load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ func flattenLoadBalancerEResource(d *schema.ResourceData, ec2conn *ec2.EC2, elbc
for _, attr := range lbAttrs.AdditionalAttributes {
switch aws.StringValue(attr.Key) {
case "elb.http.desyncmitigationmode":
d.Set("desync_mitigation_mode", aws.StringValue(attr.Value))
d.Set("desync_mitigation_mode", attr.Value)
}
}

Expand Down
2 changes: 1 addition & 1 deletion internal/service/elb/load_balancer_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func dataSourceLoadBalancerRead(d *schema.ResourceData, meta interface{}) error
for _, attr := range lbAttrs.AdditionalAttributes {
switch aws.StringValue(attr.Key) {
case "elb.http.desyncmitigationmode":
d.Set("desync_mitigation_mode", aws.StringValue(attr.Value))
d.Set("desync_mitigation_mode", attr.Value)
}
}

Expand Down

0 comments on commit 1b407c5

Please sign in to comment.