p2p/enode: fix lint issue

This commit is contained in:
Felix Lange 2019-08-22 11:28:18 +02:00 committed by GitHub
parent 930f296c8e
commit 7183ff2cdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,7 @@ func parseComplete(rawurl string) (*Node, error) {
if err != nil {
return nil, err
}
ip := ips[0]
ip = ips[0]
// Ensure the IP is 4 bytes long for IPv4 addresses.
if ipv4 := ip.To4(); ipv4 != nil {
ip = ipv4