mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
Run golint and go vet (#276)
Cleanup the errors and removed deadcode along the way. The leaves some error laying around, mostly about commenting exported identifier. We should look hard if those really are needed.
This commit is contained in:
@@ -47,7 +47,7 @@ func prometheusParse(c *caddy.Controller) (Metrics, error) {
|
||||
}
|
||||
met.ZoneNames = make([]string, len(c.ServerBlockKeys))
|
||||
copy(met.ZoneNames, c.ServerBlockKeys)
|
||||
for i, _ := range met.ZoneNames {
|
||||
for i := range met.ZoneNames {
|
||||
met.ZoneNames[i] = middleware.Host(met.ZoneNames[i]).Normalize()
|
||||
}
|
||||
args := c.RemainingArgs()
|
||||
@@ -79,6 +79,6 @@ func prometheusParse(c *caddy.Controller) (Metrics, error) {
|
||||
return met, err
|
||||
}
|
||||
|
||||
var metricsOnce sync.Once
|
||||
var metricsOnce *sync.Once
|
||||
|
||||
const addr = "localhost:9153"
|
||||
|
||||
Reference in New Issue
Block a user