Tidy up most errors and warnings from lint tools. (#165)
This commit is contained in:
parent
255aa2e5d5
commit
2882991000
12 changed files with 26 additions and 26 deletions
|
@ -28,7 +28,7 @@ func (e Etcd) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (i
|
|||
// are not auth. for *but* do have a stubzone forward for. If we do the stubzone
|
||||
// handler will handle the request.
|
||||
if e.Stubmap != nil && len(*e.Stubmap) > 0 {
|
||||
for zone, _ := range *e.Stubmap {
|
||||
for zone := range *e.Stubmap {
|
||||
if middleware.Name(zone).Matches(name) {
|
||||
stub := Stub{Etcd: e, Zone: zone}
|
||||
return stub.ServeDNS(ctx, w, r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue