mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
add golangci-lint linter (#5499)
This commit is contained in:
@@ -27,7 +27,6 @@ func ContextWithMetadata(ctx context.Context) context.Context {
|
||||
|
||||
// ServeDNS implements the plugin.Handler interface.
|
||||
func (m *Metadata) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) {
|
||||
|
||||
ctx = ContextWithMetadata(ctx)
|
||||
|
||||
state := request.Request{W: w, Req: r}
|
||||
|
||||
@@ -64,7 +64,6 @@ func IsLabel(label string) bool {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
}
|
||||
|
||||
// Labels returns all metadata keys stored in the context. These label names should be named
|
||||
|
||||
Reference in New Issue
Block a user