Simplify returning boolean expression
This commit is contained in:
parent
607dc95b5a
commit
0b6b6d977c
1 changed files with 1 additions and 4 deletions
|
@ -72,8 +72,5 @@ func checkReverse6(entry Record, result Record) bool {
|
||||||
check := strings.Replace(entry.Fqdn, result.Fqdn[1:], "", 1)
|
check := strings.Replace(entry.Fqdn, result.Fqdn[1:], "", 1)
|
||||||
logrus.WithFields(logrus.Fields{"entry": entry.Fqdn, "result": result.Fqdn[1:]}).Debug("REVERSE checkReverse6 :")
|
logrus.WithFields(logrus.Fields{"entry": entry.Fqdn, "result": result.Fqdn[1:]}).Debug("REVERSE checkReverse6 :")
|
||||||
logrus.Debugf("REVERSE checkReverse6 : %s", check)
|
logrus.Debugf("REVERSE checkReverse6 : %s", check)
|
||||||
if strings.Contains(check, IP6arpa) {
|
return !strings.Contains(check, IP6arpa)
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue