diff options
author | 2017-06-14 09:37:10 -0700 | |
---|---|---|
committer | 2017-06-14 09:37:10 -0700 | |
commit | e49ca86ce463395f7d0d2b997c93d25e3d101ca0 (patch) | |
tree | 9457aa245a6ccc278a296d341370eae99e1f78b2 /middleware/file | |
parent | 5c10eba31c17dcc5d95431e655280fff19979a34 (diff) | |
download | coredns-e49ca86ce463395f7d0d2b997c93d25e3d101ca0.tar.gz coredns-e49ca86ce463395f7d0d2b997c93d25e3d101ca0.tar.zst coredns-e49ca86ce463395f7d0d2b997c93d25e3d101ca0.zip |
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.
Diffstat (limited to 'middleware/file')
-rw-r--r-- | middleware/file/notify.go | 4 | ||||
-rw-r--r-- | middleware/file/reload.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/middleware/file/notify.go b/middleware/file/notify.go index 381c1e8c2..90dfdc521 100644 --- a/middleware/file/notify.go +++ b/middleware/file/notify.go @@ -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)) } diff --git a/middleware/file/reload.go b/middleware/file/reload.go index bd3bbbd08..18e949a94 100644 --- a/middleware/file/reload.go +++ b/middleware/file/reload.go @@ -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() |