mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 21:34:02 +03:00
Update golanci-lint
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user