lint: enable wastedassign linter (#7340)

This commit is contained in:
Ville Vesilehto
2025-06-02 02:30:41 +03:00
committed by GitHub
parent bb33ab5301
commit 8cac83dfb5
7 changed files with 9 additions and 10 deletions

View File

@@ -25,7 +25,7 @@ func parseConfig(c *caddy.Controller) ([]*Dnstap, error) {
MultipleTcpWriteBuf: 1,
MultipleQueue: 1,
}
endpoint := ""
d.repl = replacer.New()
args := c.RemainingArgs()
@@ -34,7 +34,7 @@ func parseConfig(c *caddy.Controller) ([]*Dnstap, error) {
return nil, c.ArgErr()
}
endpoint = args[0]
endpoint := args[0]
if len(args) >= 3 {
d.MultipleTcpWriteBuf, _ = strconv.Atoi(args[2])