Update golanci-lint

This commit is contained in:
9seconds
2021-04-09 14:35:04 +03:00
parent 81bca75c25
commit 585ebfeb50
32 changed files with 101 additions and 75 deletions
+1 -3
View File
@@ -68,12 +68,10 @@ func (f *Firehol) Contains(ip net.IP) bool {
return true
}
ip4 := ip.To4()
f.rwMutex.RLock()
defer f.rwMutex.RUnlock()
if ip4 != nil {
if ip4 := ip.To4(); ip4 != nil {
return f.containsIPv4(ip4)
}