mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
lint: style, autofix (#3354)
This commit is contained in:
parent
bbe7752967
commit
7a1ad8376a
48 changed files with 177 additions and 169 deletions
|
@ -14,7 +14,6 @@ func GeoIPEnrich(params ...any) (any, error) {
|
|||
parsedIP := net.ParseIP(ip)
|
||||
|
||||
city, err := geoIPCityReader.City(parsedIP)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -31,7 +30,6 @@ func GeoIPASNEnrich(params ...any) (any, error) {
|
|||
|
||||
parsedIP := net.ParseIP(ip)
|
||||
asn, err := geoIPASNReader.ASN(parsedIP)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -50,7 +48,6 @@ func GeoIPRangeEnrich(params ...any) (any, error) {
|
|||
|
||||
parsedIP := net.ParseIP(ip)
|
||||
rangeIP, ok, err := geoIPRangeReader.LookupNetwork(parsedIP, &dummy)
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue