diff --git a/internal/service/apigateway/domain_name.go b/internal/service/apigateway/domain_name.go index df48d878a6a..780f0a3c8bd 100644 --- a/internal/service/apigateway/domain_name.go +++ b/internal/service/apigateway/domain_name.go @@ -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()))