mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-10-09 21:36:22 +08:00
deadcode: CaaTargetHasSemicolon
This commit is contained in:
parent
28ca119b18
commit
ea71a9c3c9
1 changed files with 7 additions and 7 deletions
|
@ -27,10 +27,10 @@ func CaaTargetContainsWhitespace(rc *models.RecordConfig) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// CaaTargetHasSemicolon identifies CAA records that contain semicolons.
|
// // CaaTargetHasSemicolon identifies CAA records that contain semicolons.
|
||||||
func CaaTargetHasSemicolon(rc *models.RecordConfig) error {
|
// func CaaTargetHasSemicolon(rc *models.RecordConfig) error {
|
||||||
if strings.Contains(rc.GetTargetField(), ";") {
|
// if strings.Contains(rc.GetTargetField(), ";") {
|
||||||
return fmt.Errorf("caa target contains semicolon")
|
// return fmt.Errorf("caa target contains semicolon")
|
||||||
}
|
// }
|
||||||
return nil
|
// return nil
|
||||||
}
|
// }
|
||||||
|
|
Loading…
Add table
Reference in a new issue