From 45579e14b1445bb8313e22e2ebfe1daad304d46d Mon Sep 17 00:00:00 2001 From: Joel Studler Date: Fri, 9 Feb 2024 17:23:29 +0100 Subject: [PATCH] Implement proposed change by mloiseleur --- source/crd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/crd.go b/source/crd.go index 31e933408..d15b176ed 100644 --- a/source/crd.go +++ b/source/crd.go @@ -193,7 +193,8 @@ func (cs *crdSource) Endpoints(ctx context.Context) ([]*endpoint.Endpoint, error if ep.RecordType != "NAPTR" && strings.HasSuffix(target, ".") { illegalTarget = true break - } else if ep.RecordType == "NAPTR" && !strings.HasSuffix(target, ".") { + } + if ep.RecordType == "NAPTR" && !strings.HasSuffix(target, ".") { illegalTarget = true break }