Skip to content

Commit

Permalink
Merge pull request #701 from overmindtech/fix-nil-pojnter
Browse files Browse the repository at this point in the history
Fixed typo
  • Loading branch information
dylanratcliffe authored Dec 9, 2024
2 parents 4601fe1 + cf51f5f commit 79cb8eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapters/apigateway-domain-name.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func domainNameOutputMapper(_, scope string, awsItem *types.DomainName) (*sdp.It
}

if awsItem.RegionalCertificateArn != nil {
if a, err := adapterhelpers.ParseARN(*awsItem.CertificateArn); err == nil {
if a, err := adapterhelpers.ParseARN(*awsItem.RegionalCertificateArn); err == nil {
//+overmind:link acm-certificate
item.LinkedItemQueries = append(item.LinkedItemQueries, &sdp.LinkedItemQuery{
Query: &sdp.Query{
Expand Down Expand Up @@ -155,7 +155,7 @@ func domainNameOutputMapper(_, scope string, awsItem *types.DomainName) (*sdp.It
}

if awsItem.OwnershipVerificationCertificateArn != nil {
if a, err := adapterhelpers.ParseARN(*awsItem.CertificateArn); err == nil {
if a, err := adapterhelpers.ParseARN(*awsItem.OwnershipVerificationCertificateArn); err == nil {
//+overmind:link acm-certificate
item.LinkedItemQueries = append(item.LinkedItemQueries, &sdp.LinkedItemQuery{
Query: &sdp.Query{
Expand Down

0 comments on commit 79cb8eb

Please sign in to comment.