mirror of
https://github.com/coredns/coredns.git
synced 2025-12-09 03:45:11 -05:00
cleanups: go vet/golint (#331)
Go vet and golint the new code once again. Drop Name from NameTemplate - it's cleaner: nametemplate.Template.
This commit is contained in:
@@ -68,6 +68,4 @@ func classify(t Type) Class {
|
||||
default:
|
||||
return Error
|
||||
}
|
||||
// never reached
|
||||
return All
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
type Type int
|
||||
|
||||
const (
|
||||
// Success indicates a positive reply
|
||||
// NoError indicates a positive reply
|
||||
NoError Type = iota
|
||||
// NameError is a NXDOMAIN in header, SOA in auth.
|
||||
NameError
|
||||
|
||||
Reference in New Issue
Block a user