mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -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 setup(c *caddy.Controller) error {
|
||||
|
||||
func kubernetesParse(c *caddy.Controller) (*Kubernetes, error) {
|
||||
k8s := &Kubernetes{ResyncPeriod: defaultResyncPeriod}
|
||||
k8s.NameTemplate = new(nametemplate.NameTemplate)
|
||||
k8s.NameTemplate = new(nametemplate.Template)
|
||||
k8s.NameTemplate.SetTemplate(defaultNameTemplate)
|
||||
|
||||
for c.Next() {
|
||||
|
||||
Reference in New Issue
Block a user