mirror of
https://github.com/coredns/coredns.git
synced 2025-10-30 01:34:21 -04: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:
@@ -52,7 +52,7 @@ func (e *Elem) Name() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// Wildcard returns true if this name starts with a wildcard label (*.)
|
||||
// IsWildcard returns true if this name starts with a wildcard label (*.)
|
||||
func (e *Elem) IsWildcard() bool {
|
||||
n := e.Name()
|
||||
if len(n) < 2 {
|
||||
|
||||
Reference in New Issue
Block a user