Skip to content

Commit

Permalink
Fix semgrep 'ci.helper-schema-ResourceData-Set-extraneous-nil-check'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Dec 17, 2024
1 parent 072376d commit 468e873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/apigateway/domain_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func resourceDomainNameRead(ctx context.Context, d *schema.ResourceData, meta in
return sdkdiag.AppendErrorf(diags, "reading API Gateway Domain Name (%s): %s", d.Id(), err)
}

if output.DomainNameArn != nil {
if output.DomainNameArn != nil { // nosemgrep: ci.helper-schema-ResourceData-Set-extraneous-nil-check
d.Set(names.AttrARN, output.DomainNameArn)
} else {
d.Set(names.AttrARN, domainNameARN(ctx, meta.(*conns.AWSClient), d.Id()))
Expand Down

0 comments on commit 468e873

Please sign in to comment.