mirror of
https://github.com/coredns/coredns.git
synced 2025-12-18 16:15:18 -05:00
chore: Upgrade to golangci-lint v2 (#7236)
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
@@ -42,7 +42,7 @@ func (z *Zone) Reload(t *transfer.Transfer) error {
|
||||
z.Tree = zone.Tree
|
||||
z.Unlock()
|
||||
|
||||
log.Infof("Successfully reloaded zone %q in %q with %d SOA serial", z.origin, zFile, z.Apex.SOA.Serial)
|
||||
log.Infof("Successfully reloaded zone %q in %q with %d SOA serial", z.origin, zFile, z.SOA.Serial)
|
||||
if t != nil {
|
||||
if err := t.Notify(z.origin); err != nil {
|
||||
log.Warningf("Failed sending notifies: %s", err)
|
||||
@@ -62,8 +62,8 @@ func (z *Zone) Reload(t *transfer.Transfer) error {
|
||||
func (z *Zone) SOASerialIfDefined() int64 {
|
||||
z.RLock()
|
||||
defer z.RUnlock()
|
||||
if z.Apex.SOA != nil {
|
||||
return int64(z.Apex.SOA.Serial)
|
||||
if z.SOA != nil {
|
||||
return int64(z.SOA.Serial)
|
||||
}
|
||||
return -1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user