Skip to content

Commit

Permalink
Merge pull request #21867 from hashicorp/semgrep-elb-d-set
Browse files Browse the repository at this point in the history
semgrep: remove extraneous pointer conversion in elb/load_balancer.go and elb/load_balancer_data_source.go
  • Loading branch information
anGie44 committed Nov 23, 2021
2 parents b9edd00 + 1b407c5 commit 037a385
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 037a385

Please sign in to comment.