CHORE: FIx lint in diff2 (#3885)

This commit is contained in:
Tom Limoncelli 2025-12-04 10:30:19 -05:00 committed by GitHub
parent c11a523982
commit 7dc81bb4b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,10 +81,9 @@ func parseExternalDNSTxtLabel(label string, customPrefix string) *externalDNSMan
if customPrefix != "" { if customPrefix != "" {
if strings.HasPrefix(strings.ToLower(workingLabel), strings.ToLower(customPrefix)) { if strings.HasPrefix(strings.ToLower(workingLabel), strings.ToLower(customPrefix)) {
workingLabel = workingLabel[len(customPrefix):] workingLabel = workingLabel[len(customPrefix):]
} else {
// Custom prefix specified but not found - this might be a legacy record
// Continue with original label
} }
// else: Custom prefix specified but not found - this might be a legacy record
// Continue with original label
} }
// Standard prefixes used by external-dns // Standard prefixes used by external-dns