mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-29 01:04:15 -04:00 
			
		
		
		
	go lint cleanup (#904)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
		| @@ -48,7 +48,7 @@ import ( | |||||||
| // If AutoPathFunc returns a nil slice, no autopathing will be done. | // If AutoPathFunc returns a nil slice, no autopathing will be done. | ||||||
| type AutoPathFunc func(request.Request) []string | type AutoPathFunc func(request.Request) []string | ||||||
|  |  | ||||||
| // Autopath perform autopath: service side search path completion. | // AutoPath perform autopath: service side search path completion. | ||||||
| type AutoPath struct { | type AutoPath struct { | ||||||
| 	Next  middleware.Handler | 	Next  middleware.Handler | ||||||
| 	Zones []string | 	Zones []string | ||||||
| @@ -58,6 +58,7 @@ type AutoPath struct { | |||||||
| 	searchFunc AutoPathFunc | 	searchFunc AutoPathFunc | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // ServeDNS implements the middleware.Handle interface. | ||||||
| func (a *AutoPath) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) { | func (a *AutoPath) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) { | ||||||
| 	state := request.Request{W: w, Req: r} | 	state := request.Request{W: w, Req: r} | ||||||
| 	if state.QClass() != dns.ClassINET { | 	if state.QClass() != dns.ClassINET { | ||||||
| @@ -150,4 +151,5 @@ func (a *AutoPath) FirstInSearchPath(name string) bool { | |||||||
| 	return false | 	return false | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // Name implements the Handler interface. | ||||||
| func (a *AutoPath) Name() string { return "autopath" } | func (a *AutoPath) Name() string { return "autopath" } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user