mirror of
https://github.com/coredns/coredns.git
synced 2025-11-09 13:32:16 -05:00
cleanup: go vet and golint run (#736)
* cleanup: go vet and golint run Various cleanups trickered by go vet and golint. * Fix tests and lowercase all errors Lowercase all errors, some tests in kubernetes use errors from kubernetes which do start with a capital letter.
This commit is contained in:
@@ -71,7 +71,7 @@ func notifyAddr(c *dns.Client, m *dns.Msg, s string) (err error) {
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return fmt.Errorf("Notify for zone %q was not accepted by %q: %q", m.Question[0].Name, s, err)
|
||||
return fmt.Errorf("notify for zone %q was not accepted by %q: %q", m.Question[0].Name, s, err)
|
||||
}
|
||||
return fmt.Errorf("Notify for zone %q was not accepted by %q: rcode was %q", m.Question[0].Name, s, rcode.ToString(code))
|
||||
return fmt.Errorf("notify for zone %q was not accepted by %q: rcode was %q", m.Question[0].Name, s, rcode.ToString(code))
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ func (z *Zone) Reload() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// SOASerialIfDefind returns the SOA's serial if the zone has a SOA record in the Apex, or
|
||||
// SOASerialIfDefined returns the SOA's serial if the zone has a SOA record in the Apex, or
|
||||
// -1 otherwise.
|
||||
func (z *Zone) SOASerialIfDefined() int64 {
|
||||
z.reloadMu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user