mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
lint: enable wastedassign linter (#7340)
This commit is contained in:
@@ -171,7 +171,7 @@ func (h *Hostsfile) parse(r io.Reader) *Map {
|
||||
continue
|
||||
}
|
||||
|
||||
family := 0
|
||||
var family int
|
||||
if addr.To4() != nil {
|
||||
family = 1
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user