mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-12-09 13:46:07 +08:00
CHORE: FIx lint in diff2 (#3885)
This commit is contained in:
parent
c11a523982
commit
7dc81bb4b1
1 changed files with 2 additions and 3 deletions
|
|
@ -81,10 +81,9 @@ func parseExternalDNSTxtLabel(label string, customPrefix string) *externalDNSMan
|
|||
if customPrefix != "" {
|
||||
if strings.HasPrefix(strings.ToLower(workingLabel), strings.ToLower(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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue