mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
add golangci-lint linter (#5499)
This commit is contained in:
@@ -8,7 +8,6 @@ import (
|
||||
|
||||
// ClosestEncloser returns the closest encloser for qname.
|
||||
func (z *Zone) ClosestEncloser(qname string) (*tree.Elem, bool) {
|
||||
|
||||
offset, end := dns.NextLabel(qname, 0)
|
||||
for !end {
|
||||
elem, _ := z.Tree.Search(qname)
|
||||
|
||||
Reference in New Issue
Block a user